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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 07-14-2009, 12:11 PM   #1 (permalink)
Registered User
 
christopher2405's Avatar
 
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic

My System

Send a message via MSN to christopher2405
[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
christopher2405 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 07-14-2009, 03:18 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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}
The "=" isn't a CSS operator... you need to change it to:
Code:
body {background-color:#C0C0C0}
Happy coding.
Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-14-2009, 03:26 PM   #3 (permalink)
Registered User
 
christopher2405's Avatar
 
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic

My System

Send a message via MSN to christopher2405
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"
christopher2405 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-14-2009, 03:30 PM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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;}
2) In firefox perform a full(non cache) refresh of the page (Hit [Ctrl]+F5, or hold [Ctrl] and refresh the page). Sometimes CSS stylesheets are cached by your browser, which can lead to them being loaded instead of a modified stylesheet. I had this problem a few times when coding.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-14-2009, 03:44 PM   #5 (permalink)
Registered User
 
christopher2405's Avatar
 
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic

My System

Send a message via MSN to christopher2405
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"
christopher2405 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-14-2009, 03:56 PM   #6 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
Attached Files
File Type: zip working.zip (2.7 KB, 0 views)
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-14-2009, 03:57 PM   #7 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

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."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-15-2009, 06:35 AM   #8 (permalink)
Registered User
 
christopher2405's Avatar
 
Join Date: May 2007
Location: Sunderland
Posts: 158
OS: Windows XP Home SP3, Windows Vista Home Basic

My System

Send a message via MSN to christopher2405
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"
christopher2405 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 09:53 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85