Star html for IE 7
Ok, so we all know that * html won’t work in IE 7 anymore.
So, I was digging around, and came across this site. Apparently using *+html will have the same effect on IE 7 as * html does on IE 6.
Good to know.
Ok, so we all know that * html won’t work in IE 7 anymore.
So, I was digging around, and came across this site. Apparently using *+html will have the same effect on IE 7 as * html does on IE 6.
Good to know.
May 5th, 2006 at 9:47 am
Hope my comments made you to dig for this
May 5th, 2006 at 2:45 pm
Actually, it was another project that required the digging. But hey, I found one!
May 8th, 2006 at 2:42 pm
I normally don’t use invalid css hacks etc, but use selectors only understood by the good browsers (non-ie’s), like html>body div { }
May 8th, 2006 at 11:17 pm
*undersigned*: well, sincethis is an IE only hack, and I like to treat the good browsers good, I’ll rather have more IE hack than avert IE hack.
May 11th, 2006 at 7:02 pm
I’ll use inline hacks if there’s like, one thing that I need to display differently in IE. If there’s a whole lot then I’ll use a separete stylesheet. I know the inline hacks don’t validate but it’s worth the trade off for me.
May 17th, 2006 at 10:58 pm
I have begun experimenting with php-stylesheets, thats really nice!
May 23rd, 2006 at 11:21 pm
The thing is, in IE7 most if not all of IE6’s rendering bugs *should* be eradicated meaning you wont *need* to invalidate your CSS by using hacks.
May 23rd, 2006 at 11:22 pm
That didn’t come out right, I didn’t anticipate text encased in *’s being turned bold - the “should” should really be in italics.
March 2nd, 2007 at 12:23 am
Actually, the star hack seems to work for me in IE7 (windows v7.0.5730.11). For instance, this code shows a red background in IE7.
@* html #input-test@ {
background-color: red;
}
I’ve also noticed that you can use stars in front of attributes to make them only work for IE7, like so:
.myClass {
width: 700px;
*width: 750px; /* works for IE 7, ignored by other browsers. */
}