This is a discussion on "How can i color the background of my site?" within the Web Page Design section. This forum, and the thread "How can i color the background of my site? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
How can i color the background of my site?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi folks,
This is my first time here and i hoped somebody can help me out. Im building a site at www.which-lcd-tv.co.uk but i want to color the background outside of the main content area, in the past ive used this code:
Thanks v much gmbunn Last edited by CloudedVision; Jun 28th, 2008 at 17:55. Reason: Code tags please |
|
|
|
||||
|
Re: How can i color the background of my site?
You are exactly right! Have you tried the code you posted? I see no reason as to why it would not work fine.
__________________
Resources Administrator
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
||||
|
Re: How can i color the background of my site?
Find the file with the extension .css, and add
That's it!
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: How can i color the background of my site?
Hi,
Ive found 2 .css files! Ive added it to both but still no luck. Perhaps its something to do with there being 2 CSS files? Here are the two files ive got. Any ideas? Thank you gmbunn |
|
||||
|
Re: How can i color the background of my site?
aso, background-color is not the way of writing it i would recommend. You should always use just background, whether for an image, a color, or both.
__________________
CloudedVision, WebForumz Moderator Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
||||
|
Re: How can i color the background of my site?
@CV: The only reason I suggested using background-colour, was if the CSS was already specifying a background image that gmbunn wanted to use. Using simply background would have overridden it.
@gmbunn: have you got an HTML file you could provide us? Chances are, the body background is hidden by a wrapper that takes up the whole window.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: How can i color the background of my site?
Can anybody see whats wrong with the CSS files? I've tried literally everything but the background color just wont change.
Thank you gmbunn |
|
||||
|
Re: How can i color the background of my site?
Everything looks ok in the CSS - like I say, have you got an HTML page you could provide, so we can see the structure of your markup
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: How can i color the background of my site?
yeah sure, here it is:
Thanks for your help, i think im going nuts here! |
|
||||
|
Re: How can i color the background of my site?
Found the issue - your background is being set *in* your HTML using inline styles, which override anything set in your stylesheets.
You need to find the line;
Trouble is, if that line is in every HTML page, you will have to modify all of them
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: How can i color the background of my site?
Hi Aso,
that worked fine, but it colored the background of the whole page. I am trying to color the background outside of the site (outside of the site outline) you can see where i mean here: www.which-lcd-tv.co.uk. I dont suppose there's a simple way to do that? again, thank you for your help |
![]() |
| Tags |
| background color, coloring background, css |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having a problem with background color? | jaambees | Web Page Design | 2 | Jan 4th, 2008 02:05 |
| 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 |
| background color | kaz | Web Page Design | 4 | Aug 4th, 2005 17:28 |
| background color | kaz | Web Page Design | 1 | Apr 20th, 2005 11:43 |