Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
  #1  
Old August 15th, 2003, 12:46 AM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 906 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 17 m 15 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
need some help with classes

Whenever I try to use classes with css it doesn't work:
<style type="text/css">
a{color: white; text-decoration: none;}
a:hover{color: #c0c0c0;}
th{background-color: #222222;}
.tr1{background-color: #444444;}
.tr2{background-color: #000000;}
</style>

print"<tr class="tr1"><td>".$row[0]."</td></tr>";

All I get is the background color of the page.

Reply With Quote
  #2  
Old August 15th, 2003, 02:46 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: need some help with classes

i think you need to define them like so:
tr.tr1{background-color: #444444;}
tr.tr2{background-color: #000000;}

but i think you should do the td's rather than the tr's cause.. yah

Reply With Quote
  #3  
Old August 15th, 2003, 10:47 AM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: need some help with classes

Your CSS definitions seem fine, it's more likely your browser doesn't support background colors on TR elements. Like notepad said, put them on TDs.

Reply With Quote
  #4  
Old August 15th, 2003, 02:52 PM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 906 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 17 m 15 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
RE: need some help with classes

OK thanks alot guys.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > need some help with classes


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 2 hosted by Hostway
Stay green...Green IT