div layout help

  • Thread starter Thread starter Guest
  • Start date Start date
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)
 
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)
 
Back
Top