What is the difference between width / mark and _width / _margin?

.pageWidth
{
margin: 0 30px;
min-width: 940px;
_width: 976px;
_margin: 0 auto;

}

I saw this from the css file of the website. My question is: what is the difference between width / mark and _width / _margin? why use _width / _margin here?

+5
source share
3 answers

This is hack IE6. CSS rules _margin, and _widthwill be used only for that browser. There are more interesting hacks for the IE browser, for example:

width: 940px\9; /* IE8 and below */  
*width : 960px; /* IE7 and below */  

If you quickly do a google search for “IE CSS hacks”, you can find more information and tricks for CSS rules in evil IE, for example: Quick tip: how to configure IE6, IE7 and IE8 Unique with 4 characters

+11
source

_ - , Internet Explorer 6 . :

http://www.javascriptkit.com/dhtmltutors/csshacks3.shtml

* _ - , Internet Explorer 6 , . *

+1

CSS-, Internet Explorer. IE CSS, .

, IE 976px, 940px. , IE, W3C.

+1

All Articles