HighDots Forums  

* html>body hack?

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


Discuss * html>body hack? in the Cascading Style Sheets forum.



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

Default * html>body hack? - 03-09-2007 , 01:54 PM






Hi All,

I came across this CSS while researching CSS only (no tables) layouts:

* html>body .clearfix {
display: inline-block;
width: 100%;
}

What browser is that targeting?

My understanding is that * html targets any version of IE, and that
html > body is ignored by IE 6 and below.

Isn't this a contradiction? I've tried IE7, IE6, Firefox 1.5, Opera 9
and Safari 2 -- none of them process this rule.

What browser will recognize it?

- Bryan


Reply With Quote
  #2  
Old   
Bergamot
 
Posts: n/a

Default Re: * html>body hack? - 03-09-2007 , 06:38 PM






Bryan wrote:
Quote:
* html>body .clearfix {
display: inline-block;
}

What browser is that targeting?
Mac IE

WinIE to v6 and MacIE support *html. WinIE doesn't support child
selectors, though, so only MacIE applies those rules.

BTW, display:inline-block in MacIE is commonly set for stretching a
float's container.

--
Berg


Reply With Quote
  #3  
Old   
Bryan
 
Posts: n/a

Default Re: * html>body hack? - 03-26-2007 , 12:18 PM



On Mar 9, 7:38 pm, Bergamot <berga... (AT) visi (DOT) com> wrote:
Quote:
Mac IE

WinIE to v6 and MacIE support *html. WinIE doesn't support child
selectors, though, so only MacIE applies those rules.

BTW, display:inline-block in MacIE is commonly set for stretching a
float's container.

--
Berg
Excellent! Thank you for that tip, Berg.



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.