HowTo set DIV height in CSS

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top