HowTo set DIV height in CSS

  • Thread starter Thread starter kurt sune
  • Start date Start date
K

kurt sune

How do I do to set a div height in CSS?

If I create a new web page, add this in the css
#header {

background: #0D3D91;

position: absolute;

top: 0px;

left: 0px;

right: 0px;

width: 100%;

height: 2px;

}

links the page to the CSS the resulting page shows a header with height
about 16 pixel, not 2.



Is there a limit somewhere?



/k
 
Back
Top