Why font size doesn't work in IE7
I need to follow the code snippet and no matter what I set the font size IE7 won't listen at all! All other browsers work fine. Any ideas?
<html>
<head>
<title>Test</title>
<style type="text/css">
* {margin:0;padding:0;font-size:3em;font-family:Arial;}
</style>
</head>
<body>
<h1>A heading goes here</h1>
</body>
</html>
0
a source to share
4 answers
Try the following:
a) Use firebug for style checking. Overridden styles are strikethrough as style in the right pane of firebug when checking the element.
b)
font-size: 3em !important;
c) Try setting the style on the element right now, just to check with
<h3 style='font-size: 10em;'>Test</h3>
0
a source to share
try using the commonly used reset.css. * The selector will slow down the rendering of your page. Usually you need to reset the items that appear as a block. http://960gs.com can help you with this.
0
bbayer
a source
to share