Fri, 2010-09-03 14:37
Hi.
My employer created a CSS file with some weird styles that I don't understand. Maybe you can help me? Take for example the following:
body { margin: 0; padding: 0; color: #000; background-color: #FFF; } * html body { text-align: center; }
Why is the "* html body" style not included with the one above?
Fri, 2010-09-03 15:14
#1
it's an IE6 hack... probably
it's an IE6 hack... probably a misconception on how to center a design.
Fri, 2010-09-03 15:35
#2
Interesting! Ok. There must
Interesting! Ok. There must be a better way to deal with this? ...in the interest of the apparent requirement from my employer to still support this very old and broken browser?
Fri, 2010-09-03 17:54
#3
It's a very old hack used to
It's a very old hack used to get around IE in quirks mode being unable to center block elements with auto margins; it is pretty much redundant nowadays.