5 replies [Last post]
csi95
Offline
newbie
Albany, NY
Last seen: 12 years 23 weeks ago
Albany, NY
Timezone: GMT-5
Joined: 2007-03-09
Posts: 2
Points: 0

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

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 5 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

Where on earth did you find

Where on earth did you find that?

Verschwindende wrote:
  • CSS doesn't make pies

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 32 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

It's a IEmac hack

It's a IEmac hack

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

csi95
Offline
newbie
Albany, NY
Last seen: 12 years 23 weeks ago
Albany, NY
Timezone: GMT-5
Joined: 2007-03-09
Posts: 2
Points: 0

Hugo wrote:It's a IEmac hack

Hugo wrote:
It's a IEmac hack

Really? Hmmm. Very interesting.

Thank you.

m9d
Offline
newbie
BOSTON
Last seen: 12 years 23 weeks ago
BOSTON
Joined: 2007-03-08
Posts: 5
Points: 0

Hugo wrote:It's a IEmac hack

Hugo wrote:
It's a IEmac hack

I have in my notes that it is an Opera 5 hack. I don't have a link though to reference.

I do have a link for an IE/Mac hack though -

http://www.sam-i-am.com/work/sandbox/css/mac_ie5_hack.html

Are both IE/Mac hacks?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 32 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Well there are many hacks

Well there are many hacks and all of them a very bad thing indeed and make me frown muchly

The star (Universal) selector combined with the child selector is a IE Mac hack IE Mac had the same parsing error in thinking that there was a element higher than root (html) but unlike IE Win it did understand the '>' child selector so that combination would feed to IE Mac only as IE Win would choke on the '>' child selector.

There are other Opera hacks but the famous reference was to the Tantex voice-family hack for the box model (thankfully pretty much a thing of the past) where Opera would choke on the voice family property so wouldn't get the adjusted dimension as other modern browsers so the ruleset was re-declared afterwards but using the '>' child selector to prevent IE from reading the value, and was known as the 'Be nice to Opera rule'

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me