Why is DIV height different in chrome than IE or Firefox? How do I fix this?

dalearyous

[H]ard|Gawd
Joined
Jun 21, 2008
Messages
1,922
so if you set a div height and line it up in chrome its always off in IE and Firefox ... what can i do to fix?
 
With:

Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            div {
                width: 300px;
                height: 300px;
                border: 1px solid #000;
                background-color: #ccc
            }
        </style>
    </head>
    <body>
        <div></div>
    </body>
</html>

, the div looks the same in IE9, Firefox 10, Opera 12 and Chrome 17 for me.
 
More information is needed, what do you mean line it up? Are there other css properties? What exactly is the offending html?
 
Back
Top