Border not extending?

i think, but i may not be accurate (ive had a drink or two ;)) that what you need to do is encase everything in one div and that will put the border round the whole page..... lemme check your code brb
 
yeah the way i would do it is to enclose the whole page (div under body, /div just before /body) and apply a border to that, then reset your borders on your header and sides etc which should sort it out. I have had a quick crack at it, and it works like that, but the borders do need sorting as they go to 2px if not attended too.
 
You can either apply:

Code:
#pagewidth {
overflow: auto;}
to make #pagewidth expand to fit the floated elements inside. Floated elements are removed from the document flow, only affecting neighbouring line boxes. So #pagewidth won't be affected by the dimensions of those contained floats i.e. Fx is rendering as per the spec.

Or, don't float #content, and give it a left-margin instead:
Code:
#content {
width: 559px;
color: #fff; 
margin: 0 0 0 170px;
padding: 15px; }
This leaves #content in the document flow, and #pagewidth will expand according to #content's dimensions.

Second option is often the preferred method.
 
Cheers mate, second option is fine.

No idea why I decided to do a float left on the content area. :confused:

Need some ideas for making it look a bit more visually interesting, it's a bit 2Dish at the moment. Any suggestions?
 
Back
Top Bottom