CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 25th, 2002, 06:21 PM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
defining body css in linked css

hello

i have a stylesheet thats linked to my page and i know it works because all the link colours work correctly however the body tag...

body { color: red; }

seems to do nothing?? when i put it in the page itself it makes the text of the page go red? i thought this was supposed to be the background colour??

thanks in advance
gar

Reply With Quote
  #2  
Old May 25th, 2002, 08:15 PM
Galewind Galewind is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Phoenix
Posts: 42 Galewind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Re: defining body css in linked css

Quote:
Originally posted by Garrett_44
hello

body { color: red; }

seems to do nothing?? when i put it in the page itself it makes the text of the page go red? i thought this was supposed to be the background colour??

thanks in advance
gar


Try body { bgcolor: red; }

Reply With Quote
  #3  
Old May 26th, 2002, 05:59 AM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
i have nothing, its not the attribute ie color, its the body{} tag that seems to not work, nothing in it seems to work, yet i have looked at other sites and they all seem to use it???

a+
gar

Reply With Quote
  #4  
Old May 27th, 2002, 04:15 AM
twigletmac's Avatar
twigletmac twigletmac is offline
codegirl
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Essex, UK
Posts: 77 twigletmac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 9 sec
Reputation Power: 7
In CSS 'color' refers to the text color to set the background color using CSS you want to use:
Code:
BODY {background-color: red;}

If that doesn't work you may have a syntax error somewhere else in the CSS file.

Hope this helps,
Mac
__________________
easier is relative

Reply With Quote
  #5  
Old May 27th, 2002, 05:42 AM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
yep found my problem, there was a comment on a preceeding line which was interfering with the body{} tag.

thanks
gar

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > defining body css in linked css


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway