div layout help

B

bruce barker

in standard CSS, a height:100% means height of parent, but there is a
requirement that the parent have a specified (absolute) height. this is
because the size of a parent defaults to its content height. there is no
size specified for the parent so 100% is ignored.

the second issue is that the nav div is a block element, so this means
its starts on a new line, thus below the <h1></h1>

you should put the header in a div, and use relative postioning to set
them side by side.

-- bruce (sqlwork.com)
 
G

Guest

thank you for that insight.
rod.

bruce barker said:
in standard CSS, a height:100% means height of parent, but there is a
requirement that the parent have a specified (absolute) height. this is
because the size of a parent defaults to its content height. there is no
size specified for the parent so 100% is ignored.

the second issue is that the nav div is a block element, so this means
its starts on a new line, thus below the <h1></h1>

you should put the header in a div, and use relative postioning to set
them side by side.

-- bruce (sqlwork.com)
 

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,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top