Previous Message
Next Message

[css-d] width for inline elements

Sent by Amit Khanna on 15 April 2003 16:04


I was trying the inline list example from
http://www.alistapart.com/stories/taminglists/

I used the following styles for the list:
ul, li {display: inline; margin: 0; padding: 0; color: #339; font-weight: 
bold}
li {width: 150px;}

The width: 150px was not applied to the li element. Hence I tried the 
following:
<p>This is <span style="width: 250px; border: 1px black solid">250px 
wide</span></p>
Didn't work either. Does that mean that width property cannot be applied to 
inline elements?

TIA
Amit

PS: Works OK with IE5.5/Win, but not with NS7/Win and Opera7/Win.

_________________________________________________________________
MSN Instyle. Keeps you in sync. http://server1.msn.co.in/instyle/index.asp 
Always!

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: