Forum Moderators: not2easy
#headertag {
position: absolute;
left: 10px;
top: 90px;
text-align: left;
width: 213px;
height: 43px;
overflow: visible;
}
The website is
<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>
[edited by: tedster at 8:29 am (utc) on April 11, 2005]
Thanks!
Here is the html content:
<body>
<div id="container">
<div id="image_container">
<div id="headertag">
<h1>Welcome</h1>
</div>
<div id="headertag2">
</div>
<div id="innerimage_left">
<div id="innerimage_right">
</div>
</div>
</div>...
Here is the CSS content I'm dealing with:
body {
margin: 0px;
text-align: center;
background-image: url(images/tile.gif);
background-repeat: repeat;
...
#container {
margin: 0px auto;
width: 770px;
voice-family: "\"}\"";
voice-family: inherit;
position: relative;
}
html>body #container {
width: 770px;
}
#image_container {
width: 770px;
}
#innerimage_left {
background-image: url(images/headerleft.gif);
background-repeat: no-repeat;
}
#innerimage_right {
background-image: url(images/headerright.gif);
height: 200px;
background-repeat: no-repeat;
margin-left: 416px;
}
...
#headertag {
position: absolute;
left: 10px;
top: 90px;
text-align: left;
width: 213px;
height: 43px;
overflow: visible;
}
I see the problem as being with the <h1> within the <div>. The <div> looks to be placed similarly in FF, O, IE. You might want to use differing coloured backgrounds when debugging as it quickly shows up oddities.
You need to override the default margin: .67em 0; that Firefox uses with <h1>.
Add to your CSS:
#headertag h1 {margin: 0;}
The browsers come complete with differing default CSS especially regarding margin and padding.
That is why you will often see:
* {padding: 0; margin: 0;}
at the top of a CSS file. It allows the developer to forget about the differences. Of course you then have to specify your own in each instance. But at least they are then consistent.