Having a problem with background color?

This is a discussion on "Having a problem with background color?" within the Web Page Design section. This forum, and the thread "Having a problem with background color? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 4th, 2008, 01:04
New Member
Join Date: Jan 2008
Location: Charlottesville,Va
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Having a problem with background color?

Hi,

I was wondering if anyone could help me with a problem I having with a
site I am trying to finish.

O.k. Here is the problem- My site is a basic sales page and I have tried adding background to the css file but it makes the entire page that color. I need white for the inside where text goes. Its just your basic salepage, background color to the outsides and white color and text to the inside.

I also tried adding it inot my php.head and that made the whole page one color again, does anyone know how to fix this. My header and footer are 800pixelswide, I need everything outside of that to be background color?

Sorry for the long explanation from the "Newbie".

Thanks
Jaambees
Reply With Quote

  #2 (permalink)  
Old Jan 4th, 2008, 01:43
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Having a problem with background color?

OK. Make your body background the non-white color by doing this in your CSS:
Code: Select all
body {
background:#00c; /* change this to the color you want, right now it's blue */
}
And make the content white by adding this:
Code: Select all
#wrap {
background:#fff; /* white */
}
Then, put your page content and footer into a div with the id "wrap". Like this:
HTML: Select all
<div id="wrap">
<div>Content</div>
<div>Footer</div>
</div>
That should do it...

Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #3 (permalink)  
Old Jan 4th, 2008, 02:05
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Having a problem with background color?

Could you post your HTML and CSS code here?
That way we could see what are you trying to accomplish here

Cheers..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
background color in xml kool77 Other Programming Languages 2 Jul 7th, 2007 15:30
background-color kapyrossi Web Page Design 5 Jul 4th, 2007 15:53
IFRAME - background color jansoft Web Page Design 0 May 18th, 2007 11:21
background color kaz Web Page Design 4 Aug 4th, 2005 17:28
background color kaz Web Page Design 1 Apr 20th, 2005 11:43


All times are GMT. The time now is 07:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43