HighDots Forums  

CSS class in <td> or <tr>?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS class in <td> or <tr>? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ivan Wiegand
 
Posts: n/a

Default CSS class in <td> or <tr>? - 07-20-2004 , 06:37 PM






I have a repeating reagion applied to a row <tr> with a border specified in
a CSS class. The border is on the bottom only so there is a line in between
each record. When I apply the style to the <tr> the line does not show. When
I apply the style to each <td> individually, the line shows up. I would much
rather use my styles in the <tr> whenever possible.

A little help? thanks.

-Ivan



Reply With Quote
  #2  
Old   
Anton_FA
 
Posts: n/a

Default Re: CSS class in <td> or <tr>? - 07-20-2004 , 07:12 PM






Hi Ivan

It looks like you have discovered the answer for yourself.

The border will only show when the css class is used in <td> - atleast in IE.

Reply With Quote
  #3  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS class in <td> or <tr>? - 07-20-2004 , 07:57 PM



.oO(Ivan Wiegand)

Quote:
I have a repeating reagion applied to a row <tr> with a border specified in
a CSS class. The border is on the bottom only so there is a line in between
each record. When I apply the style to the <tr> the line does not show. When
I apply the style to each <td> individually, the line shows up. I would much
rather use my styles in the <tr> whenever possible.
Use a descendant selector.

tr.yourClass td {border-bottom: 1px solid #000}

HTH
Micha


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.