Closed Thread Icon

Preserved Topic: Advanced CSS support in IE? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7679" title="Pages that link to Preserved Topic: Advanced CSS support in IE? (Page 1 of 1)" rel="nofollow" >Preserved Topic: Advanced CSS support in IE? <span class="small">(Page 1 of 1)</span>\

 
ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 03-08-2004 21:25

No, it's not a joke (or at least I don't think it is).

Dean Edwards has been working on improved CSS support in IE. Although the project is entitled "IE7," some further investigation leads me to believe that there is no real connection to the official release of the next version of IE. It's simply a set of enhancements for the current generation of IE (5.5+), and a hint at what's possible in the future.

Check out the compatibility chart for a list of his enhancements, current progress, and test pages. Among them are new CSS2 (and even some CSS3) selectors, properties, and more. There's a whole bunch of stuff that you've been waiting for...

- support for :first-child (CSS2) and :last-child (CSS3!)
- proper support for :active, :focus, and :hover (:hover now works on all elements, not only links)
- element[attr] { support for attribute selectors }
- element[attr="foo"] { support for attribute matching }
- child selectors (> ) and adjacent siblings (+)
- multiple.classes.stringed.together
- support for :root (CSS3!)
- full support for min-width, max-width, min-height, and max-height
- support for the <abbr> element (scheduled to fully replace <acronym> in XHTML2)

You can get all of the above working in IE 5.5+! All you need to do is link to Dean's IE behaviors (.htc) file.

Just download the following files:
- ie7-html.css
- ie7-style.htc
- ie7.htc

...and link to ie7-html.css as you would any ordinary CSS file. Note that ie7-html.css must appear before all other stylesheets to work properly.

Also note that ie7-html.css will not validate, because it uses the IE-only CSS property "behavior" to link to the .htc file. While this isn't a deal-breaker for me, there are those who insist on using only 100% valid code and/or look down upon the usage of any proprietary solutions. My only response to them is that I feel that the advantages of using this patch (significantly improved standards support in IE) far outweigh the disadvantages (a minor validation error, and for some, the guilt of having utilized a proprietary hack). I like to think of it as taking one step backwards, in order to move two steps forward.



[This message has been edited by ozphactor (edited 03-08-2004).]

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 03-09-2004 07:23

OK...that looks cool..I'll give it a burl when I get home.

Justice 4 Pat Richard

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 03-09-2004 09:54

Cool stuff, i took the liberty of placeing it in the FAQ http://faq.ozoneasylum.com/1400
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 03-09-2004 11:29

I've seen the word spread about "IE7" lately in the CSS and web standards advocates websites. I've not tested it, but it's taken seriously by some of the big names. The only thing I could regret is the misleading name of that api, not to mention that MS may not appreciate that name too and unleash its own advocates upon Dean.

though Dean's api is only in alpha stage, the enhancements it brings to IE5.5+ are quite worth the 28kb ( or 10kb for the packed version ).

« BackwardsOnwards »

Show Forum Drop Down Menu