OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
padding procedure
This page's ID:
11064
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi guys, I've a question about using CSS to apply padding within table cells. I have a table with, lets say, 10 rows. Each row alternates in colour, Light grey, Dark grey, Light grey, Dark grey etc. I've created styles that I have applied to each row that sets the colour of font, the background and also includes padding. Problem! adding padding to a <tr> style doesn't seem to work!? I created the same style but applied it to a <td>, padding works fine here, text has a 2px area around it. What's the reason for this? I though the best way to apply styles here would be to the rows individually instead of every cell!! Do I need to use a different term for padding when refering to <tr>'s? I've been using padding: 2px 2px 2px 2px; everyhwere else. Any help would be appreciated. Cheers, Blaise
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »