Click to See Complete Forum and Search --> : IE7 Tan hack (*html) doesn't work!!!


Dopple
09-22-2006, 07:13 AM
Hi everyone. I've just recently been informed of the tan hack (*html) to make explorer work as it should, but I now find out it doesn't work with IE7 (http://www.456bereastreet.com/archive/200601/internet_explorer_7_and_html/)!!! I installed this a couple of nights ago and I see it's screwing up all of my hard work on a site, and I am wondering if there's anything I can do to acheive the same result as the tan hack does.

P.s. the actual problem which made me realise this is on www.ufreak.net and the menu at the side of the screen. In Firefox and safari it displays teh list items fine, that is to say equidistantly so it looks centered within the menu graphic.
In IE7 it looks like it needs an extra pixel or so between the list items.
Any thoughts or ideas?

Or even comments on the new beta browser?
I actually think it might spell the end of firefox since it has tabbed browsing. What is there that will actually draw users to firefox that isn't in EI7 (I doubt standards complient will appeal to anyone who doesn't design websites.)


Edit- I found http://www.quirksmode.org/css/condcom.html which answers my question about alternatives but I'm still interested in hearing peoples thoughts on this.
Also how would you use the conditional statement? Would you use it to select another style sheet or just place it after the stylesheet link to alter whatever you need altered?

Kravvitz
09-22-2006, 08:23 AM
They did that for good reason. They fixed a lot of the bugs in IE6 that the star html hack was used to fix. (http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx)

Please fix your XHTML (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ufreak.net%2F&charset=iso-8859-1&doctype=Inline&verbose=1) and CSS (http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Fwww.ufreak.net%2F) errors. Several of your CSS errors are that "*html" should be "* html".

You would place a <link> or <style> element inside the conditional comment to override or add any styles that IE7 needed to display the page like FF, Opera, and Safari.

I really don't like IE7's interface. I don't like not being able to move the address bar from being above the menu bar. Not being able to have the old style menu bar on the same row as the new style one annoys me too.

A few people may switch back to IE when IE7 is officially released, but I'm not worrying about it because people using Win2k, Win98, and anybody unable to upgrade WinXP to SP2 will be stuck with IE6.

felgall
09-22-2006, 04:03 PM
The best way to fix your CSS for Internet Explorer and which can be applied on a version by version basis is to use IE conditionals in your HTML to include extra stypesheets that contain the fixes for the specific IE version rather than relying on hacks within the CSS itself.