User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » CSS question Page [1]  
jbtilley
All American
12791 Posts
user info
edit post

In my css file I have defined a class with modifications to the td tag

I use it in my <tr class="tdCSS"> tag becasue I want to apply borders to each TR (you can't do borders with the TR tag in CSS)

I'm having a problem with the following:

<tr class="tdCSS">
<td>
<table>.......</table>
<td>
</tr>

The problem is that I have other td tags in the nested table that pick up the td formatting creating borders where I don't want them. I just want one border around the TR housing the table, not a border around every TD withing the table. Is there a way to make it so a TD tag in a DIV does not receive the formatting? Kinda like <td class="null"> (or any undefined class).

My other option would be to just make each row a seperate table and just have one table appended to the next. I'd rather not do that. Sorry if this isn't clear.

2/22/2006 9:14:28 PM

jbtilley
All American
12791 Posts
user info
edit post

Sigh, nevermind.

Shoulda bumpped the class reference down to the actual td, not the tr.

<tr>
<td class="tdCSS">
<table>.......</table>
<td>
</tr>

2/22/2006 9:25:03 PM

punchmonk
Double Entendre
22300 Posts
user info
edit post

you can do borders on the tr tag

and take the table out of the td tag. you probably don't have a good enough reason to nest tables

http://www.w3.org/TR/REC-CSS2/tables.html#borders

[Edited on February 22, 2006 at 9:54 PM. Reason : .]

2/22/2006 9:48:49 PM

FroshKiller
All American
51908 Posts
user info
edit post

...

2/22/2006 9:51:37 PM

 Message Boards » Tech Talk » CSS question Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.