Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / March 2007



Tip: Looking for answers? Try searching our database.

* html>body hack?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bryan - 09 Mar 2007 18:54 GMT
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
Bergamot - 09 Mar 2007 23:38 GMT
> * 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.

Signature

Berg

Bryan - 26 Mar 2007 17:18 GMT
> Mac IE
>
[quoted text clipped - 6 lines]
> --
> Berg

Excellent!  Thank you for that tip, Berg.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.