![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic
|
[SOLVED] Background Colours
I have just finished going through the W3C HTML tutorial, and have moved onto CSS as the tutorial was so easy and helpful.
I have specified a background colour in the CSS template, and it works fine - but only if I open it in Internet Explorer (Chrome and Firefox don't work). Does anyone know where I'm going wrong? I've attached both files (in a zipped folder), and would appreciate some help. Also, please ignore the fact that the web page is completely nonsensical, I just threw everything I was learning into one HTML document. Also, the CSS document is just to see how to do things, not to actually make it look pretty (at least at this stage) ![]() Thanks again. site.zip
__________________
"Those who can, do; those who can't, teach; those who can't teach, teach PE"
Last edited by christopher2405; 07-14-2009 at 12:18 PM. Reason: Forgot attachments |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Background Colours
Hey, yep it's just a small problem in style.css:
Code:
body {background-color=#C0C0C0}
Code:
body {background-color:#C0C0C0}
Cheers, Jamey |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic
|
Re: Background Colours
Thanks for the reply, but that still isn't working in Chrome or Firefox though. Everything is working fine other than this background, and even that still works in Internet Explorer. It's just slightly frustrating to not know why it won't work in my favourite browser.
__________________
"Those who can, do; those who can't, teach; those who can't teach, teach PE"
|
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Background Colours
Got it working on my PC. Two things to try:
1) Add a semicolon to the end of the definition(sorry i missed this out in my post because it's almost second nature to me when coding and i forgot haha =]) : Code:
body {background-color:#C0C0C0;}
Cheers, Jamey |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic
|
Re: Background Colours
Sorry, still not working.
I'll take some screenshots and post again in the morning, but thanks for your help.
__________________
"Those who can, do; those who can't, teach; those who can't teach, teach PE"
|
|
|
|
|
|
#6 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Background Colours
Okay, i've uploaded and attached my working version. This one definately works so compare it with what you have and see if you get the same problem?
Cheers, Jamey |
|
|
|
|
|
#7 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
Re: Background Colours
Hello Christopher. Please repost the updated files when you get a chance so that Jamey and I can diagnose the problem. Thanks
__________________
Nice music blog ![]() Nvu || Notepad++ || Apache || PHP || Keep TSF Alive "The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier." |
|
|
|
|
|
#8 (permalink) |
|
Registered User
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic
|
Re: Background Colours
Thanks for your help so far. I've added more to the CSS document since yesterday, including what you said, and for whatever reason it is now working in Chrome as well. I typed exactly what you first said, and it didn't work, but when I copied and pasted, it did.
Never mind, working now - thanks again.
__________________
"Those who can, do; those who can't, teach; those who can't teach, teach PE"
|
|
|
|
![]() |
| Thread Tools | |
|
|