Hi
I tried searching the forums but I didn't find an answer to my current problem.
The problem is no matter what I do there is always
something like a 14 to 18 pixel padding applied
to the top of my #center div. So even if I set p to padding-top:0; there is still padding applied to the text at the top of the div.
Here is my HTML and CSS code.
Anyone have any clues to what's going on?
Help is greatly appreciated. :)
HTML
<div id="container">
<div id="header">
</div>
<div id="leftside">
</div>
<div id="center">
<p>
</p>
</div>
<div id="rightside">
</div>
<div id="footer">
</div>
</div>
</body>
</html>
CSS Text styling Code
p {
font-family:Arial, Verdana, Helvetica, Helvetica Neue, Tahoma, Lucida Grande,
Geneva, Nimbus Mono L, DejaVu Sans Mono, sans serif;
color:#000000;
font-size:1.0em;
letter-spacing:0;
word-spacing:0;
line-height:100%;
text-align:left;
vertical-align:baseline;
text-decoration:none;
text-transform:none;
white-space:normal;
text-indent:10px;
padding-top:0;
padding-right:10px;
padding-bottom:0;
padding-left:10px;
}
Main CSS page styling
body {
margin:0;
padding:0;
background-color:#333333;
color:#FFFFFF;
line-height:100%;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
}
#container {
position:relative;
left:0px;
top:0px;
width:512px;
height:512px;
background-color:#000000;
color:#FFFFFF;
margin-top:100px;
margin-right:auto;
margin-bottom:auto;
margin-left:auto;
padding:0;
background-image:none;
border:2px dotted#FFFFFF;
}
#header {
position:absolute;
left:0px;
top:0px;
width:512px;
height:64px;
background-color:#888888;
color:#FFFFFF;
padding:0;
margin:0;
border:0;
}
#leftside {
position:absolute;
left:0px;
top:64px;
width:64px;
height:384px;
background-color:#555555;
color:#FFFFFF;
padding:0;
margin:0;
border:0;
}
#center{
position:absolute;
left:64px;
top:64px;
width:384px;
height:384px;
background-color:#FFFFFF;
color:#FFFFFF;
overflow:auto;
padding:0;
margin:0;
border:0;
}
#rightside {
position:absolute;
left:448px;
top:64px;
width:64px;
height:384px;
background-color:#777777;
color:#FFFFFF;
padding:0;
margin:0;
border:0;
}
#footer {
position:absolute;
left:0px;
top:448px;
width:512px;
height:64px;
background-color:#999999;
color:#FFFFFF;
padding:0;
margin:0;
border:0;
}