On 8/5/05, Tek <[EMAIL PROTECTED]> wrote:
> I am just learning css and I have been working with adding a
> background image to a cell. well really I'm reading eric meyer on css
> and I find css that reads:
> 
> background: transparent url(filename).
> 
> When I do this in Dreamweaver the code doesn't show this "tranparent
> url". Can someone explain why that is there and whether or not it's
> significant.
> 
> I tried a search engine and it just kept bringing up code examples
> without explainations. and up to this point none of my books have
> this.

Usually you should provide a fallback background colour should the
image filename not be available. transparent means that the fallback
background colour should be the one of the parent element. This is
rather redundant, but necessary for the CSS to validate.
A better option is to use a real colour:
background: #fff url(foo.gif);



-- 
Chris Heilmann 
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/  
Binaries: http://www.onlinetools.org/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to