Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-05-2010, 02:24 AM   PM User | #1
thesahand
New to the CF scene

 
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thesahand is an unknown quantity at this point
blank div used for background color, how do I make it stretch across the whole page?

I'm trying to create a page where the background color changes halfway down,
like www.brianhoff.net


i've got everything in the body inside a wrapper that's sized at 800 width and whatever the height ends up at for the height,
so the page will have fixed dimensions.

I'm down where I want the background to change to black,
where in the HTML i used this:

Code:
	<div id="blackness"><p><br /></p>
	</div>
in the css, I did this:


Code:
#blackness {
	background-color: #000;
	position: relative;
	padding-bottom: 100;
}

now this is what I'm seeing on the left side of the page,
where I don't want any sort of gap. Instead I'd like for it to be covering the whole of that section of the page from side to side.

here's what I'm seeing:





Also,
the "blackness" div is not within the sized wrapper.

what can I do?

thanks for reading it this far
thesahand is offline   Reply With Quote
Old 09-05-2010, 06:21 AM   PM User | #2
Major Payne
Regular Coder

 
Join Date: Aug 2005
Location: MS
Posts: 745
Thanks: 7
Thanked 65 Times in 63 Posts
Major Payne is an unknown quantity at this point
stu nicholls | CSS PLaY | 100% wide/high 'background' image emulation

Sorry. That's not going to work for you. Mis-read the post title. Just saw "stretch across the whole page?". :P
__________________
☠ ☠RON☠ ☠

Last edited by Major Payne; 09-05-2010 at 06:26 AM..
Major Payne is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:32 AM.


Advertisement
Log in to turn off these ads.