Old 13-11-2006, 21:34   #1 (permalink)
dougmays
Registered User
 
Join Date: Oct 2006
Location: Ft. Lauderdale, FL.
Posts: 90
Send a message via AIM to dougmays
nested td's in CSS

is there a way to format your CSS so that if i have a table that is only 2 columns, to make it so the 2nd column's text is always aligned right??

for example

td td{text-align:right;}
  Reply With Quote
Old 13-11-2006, 22:49   #2 (permalink)
skyrocket
SkyRocket Design
 
skyrocket's Avatar
 
Join Date: Aug 2005
Location: Chichester
Posts: 536
give the td a class eg: td.right then in your CSS .right {text-align:right;}
  Reply With Quote
Old 13-11-2006, 23:32   #3 (permalink)
dougmays
Registered User
 
Join Date: Oct 2006
Location: Ft. Lauderdale, FL.
Posts: 90
Send a message via AIM to dougmays
i was looking for a way to do it without manually typing in the class, just like nested lists.... eg: li li{}
  Reply With Quote
Old 14-11-2006, 01:19   #4 (permalink)
skyrocket
SkyRocket Design
 
skyrocket's Avatar
 
Join Date: Aug 2005
Location: Chichester
Posts: 536
There's your answer then - use a nested list. Otherwise I think you'll only be able to do what you want by nesting a table and heading towards codesoupville
  Reply With Quote
Old 14-11-2006, 04:13   #5 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8