[UPHPU] CSS question.

Benjamin Schmuhl schmuhl at gmail.com
Wed May 31 08:54:46 MDT 2006


See:

http://www.alistapart.com/stories/doctype/
http://www.schmuhlmedia.com/doctype.php  (test with different browsers)


-----Original Message-----
From: uphpu-bounces at uphpu.org [mailto:uphpu-bounces at uphpu.org] On Behalf Of
Smith, Jeff
Sent: Tuesday, May 30, 2006 7:14 PM
To: uphpu at uphpu.org
Subject: [UPHPU] CSS question.


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

_______________________________________________

UPHPU mailing list
UPHPU at uphpu.org
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net



More information about the UPHPU mailing list