LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

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

Rep: Reputation: 35
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
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 832

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


Reply


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


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

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