View Full Version : CSS: Need to extend wrap background to top and bottom of page?
09-03-2010, 09:54 AM
I'm having a bit of trouble with my webpage:
I would like the white background of my wrap in the middle there to extend to the top of the page...and also to the bottom of the page, without the need for content to push it down.
Thanx in advance for your help...
09-03-2010, 10:19 AM
/* Always show a scrollbar for short pages - stops the jump when the scrollbar appears. non-IE browsers */
/* Text-Sizing with ems: http://www.clagnut.com/blog/348/ */
font-family: Verdana, Helvetica, Arial, sans-serif;
background-position: top center;
/*font-size: 62.5%; This sets the default font size to be equivalent to 10px */
/* Main blocks
padding: 0 20px;
margin: 0 auto;
/* hack for IE6 */
09-03-2010, 10:26 AM
Woah...that was fast!
Thank you so much...only thing is, I do want a 12px gap up the top there...
09-03-2010, 11:08 AM
Also, it seems to have cut off the rounded corners on the top of that header?
09-03-2010, 11:21 AM
Add some padding-top to#wrap
09-03-2010, 11:25 AM
Ok, yes, I have done that...added some padding at the top of the wrap...but:
it seems to have cut off the rounded corners on the top of that header?
I have some code in there that is supposed to round the corners of the top of the header...like this:
Something in the new code has stopped that from working...
09-04-2010, 01:53 AM
Hello...can anyone pls help?
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.