Hi, i have a problem with my h1 tag displaying different postion results in IE & FF.
Ive attached two images for clearly idea. The position of the headline changes in both browsers.
my aim is to have "hello" postion in the vertical middle of div tag.
i have used both padding and line height previously, but i have the same inconsistent results.
Heres my
xhtml code:
- HTML: Select all
<body>
<div id="Container">
<div id="headline"><h1>Hello</h1></div>
</div>
</body
Heres my css:
h1 {
font-family:"Century Gothic";
font-size: 1em;
font-weight: bold;
color: #CC0000;
text-align: center;
width: 600px;
}
#Container {
background-color: #66CCFF;
height: 200px;
width: 800px;
position: absolute;
}
#headline {
background-color: #CCCCCC;
height: 40px;
position: relative;
bottom: 0px;
margin: 0px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 200px;
}
any help would be great