Hey,
I have a header with just a h1 tag and some text and as css i have set the height, padding and background color.
Now I want to set the text 5px from the left and top but as soon as I set a padding for the top it jumps down more than 5px. Any idea what is causing this and how I can solve this?
code:
<div id="header">
<h1>Welcome to my page</h1>
</div>
/* HEADER */
#header{
height: 100px;
padding: [B]5px[/B] 0 0 5px;
background:yellow;
}
Result: