Previous Message
Next Message

why is background not shown in IE

Sent by Paul Novitski on 10 January 2006 02:02


At 12:27 PM 1/9/2006, [EMAIL-REMOVED] wrote:
>The image is in the correct folder, the css looks ok...
>
>.list_dot {
>background-image:url(../shared/printer.jpg);
>      width:200px;
>      height: 10px;
>      background-color:#CC9966;
>      display: inline;
>
>
>}
>
><span class="list_dot">some text</span>
>    <span class="list_dot">some more text</span>

Ross,

It does no good to declare width & height for an inline element, 
although this doesn't help me understand why your image isn't showing.

The only references to 'inline' in the W3C spec on backgrounds say, 
"The tiling and positioning of the background-image on inline 
elements is undefined in this specification. A future level of CSS 
may define the tiling and positioning of the background-image on 
inline elements."
http://www.w3.org/TR/CSS21/colors.html#propdef-background-repeat

Does it show if you declare the class with display: block?  Does it 
help to put the URL into quotation marks?  What browsers have you tried?

Paul 

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: