[UPHPU] CSS question.

Wade Preston Shearer lists at wadeshearer.com
Tue May 30 19:59:50 MDT 2006


> Hmm that is what I thought.  Does anyone know how to accomplish  
> what I want to do?  It seems the W3C box model is backwards but if  
> it is the standard it is the standard.

Sure. Instead of specifying the box to 100% of the viewport, tell it  
to auto stretch to whatever space is available. This way, it will be  
"all the way across," even if the vertical scroll bar is there  
(opposed to being 100% of the viewport, no matter what).

100% = width of parent (in this case, the parent is the body, or the  
viewport

auto = with of available space


Note, auto is the default, so not specifying it will be what you want.


<html>
<head>
<style>
body
{
	margin: 0;
	padding: 0;
}

#header
{
	border: 1px solid #000000;
	height: 20px;
}
</style>
</head>
<body>
<div id="header"></div>
</body>
</html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20060530/5ef78de3/smime.bin


More information about the UPHPU mailing list