HighDots Forums  

Re: no HEIGHT for SPAN in mozilla?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: no HEIGHT for SPAN in mozilla? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Philipp Lenssen
 
Posts: n/a

Default Re: no HEIGHT for SPAN in mozilla? - 09-05-2003 , 11:15 AM






marius wrote:

Quote:
i want to display two boxes

+------+
| Red |+------+
| || Blue |
+------++------+

they have different height. how would i do this in mozilla since only
block level elements support height attribute? and blocks are not
displayed on the same line.

in IE i could get away with the simple CSS:

.red { height: 35px; background: red }
.blue { height: 25px; background: blue }

span class="red">Red</span><span class="blue">Blue</span

Height doesn't apply to non-replaced inline elements such as above, so
IE is wrong, and Mozilla right, and you shouldn't want to force this
behavior either... well, this is how I understand it. You might want to
trigger strict mode in IE6 and see how it goes, too.

http://www.w3.org/TR/CSS2/visudet.ht...eight-property

--
Google Blogoscoped
http://blog.outer-court.com


Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.