[UPHPU] CSS question.

Smith, Jeff Jeff.Smith at hollycorp.com
Tue May 30 19:14:23 MDT 2006


I know this isn't a PHP question but you guys know too much about HTML/CSS not to ask.

I am trying to become more familiar with CSS.  I wanted to have a header that goes the width the window.  Here is a snippet of sample code the header box stretches across the screen and the box ends up being wider then the window.  From what I can tell the width style is the width of the content not the box.  Is it possible set the width of the box in CSS?

<html>
  <style>
    #header {
      width: 100%;
      border: 1px black solid;
    }
  </style>
  <body>
    <div id=header>Header</div>
  </body>
</html>



Jeff Smith


More information about the UPHPU mailing list