Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


  Search this Thread
Old 02-27-2007, 10:58 PM   #1
Senior Member
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 1,030

Rep: Reputation: 45
images and CSS

Casual CSS user.
Is it possible to change the background colour of an image with CSS?
These are small images containing only 2 colours, one is white.

Thank you for your help.
Old 02-28-2007, 12:52 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
CSS cannot change the properties of an image. The code provides for setting the background on which the image is placed. You can make portions of the image transparent (not with CSS), but this is not handled the same by all browsers.

If I am not mistaken, Firefox follows the standard and IE does not.
Old 02-28-2007, 03:27 AM   #3
Senior Member
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 1,030

Original Poster
Rep: Reputation: 45
Thank you for the quick answer.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 12:21 AM
Need a CSS Validator halfpower Linux - Software 2 02-15-2007 10:12 AM
How do CSS images load? MicahCarrick Programming 2 01-11-2007 12:37 PM
Convert cd images to dvd images rcsuk Debian 2 07-11-2005 10:34 AM
CSS taking over... Phrater Programming 2 07-09-2003 02:09 PM > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration