Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-02-2005, 07:59 PM   PM User | #1
redshift83
New to the CF scene

 
Join Date: Mar 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
redshift83 is an unknown quantity at this point
Div, Span, and Table Rows

I’m trying to apply a style to the text of several rows of a table. I only want to apply the style to some of the rows not all.

I have tried using the div tag and the span tag but I can’t get the style to apply to the specific rows.

I did something like this with no luck.

<span class=”asdf”>
<tr><td>blah</td><td>blah blah</td></tr>
<tr><td>fefea</td><td>ffefa</td></tr>
………
</span>
redshift83 is offline   Reply With Quote
Old 06-02-2005, 08:24 PM   PM User | #2
s.g.d
New Coder

 
Join Date: Mar 2005
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
s.g.d is an unknown quantity at this point
you could make a TR class

<table>
<tr class="1">
<td></td>
</tr>
<tr></tr>
</table>

if that were a real table, class 1 would only be applied in that row. apply class 1 as you see fit, and tada...styled
s.g.d is offline   Reply With Quote
Old 06-02-2005, 08:50 PM   PM User | #3
redshift83
New to the CF scene

 
Join Date: Mar 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
redshift83 is an unknown quantity at this point
Quote:
Originally Posted by s.g.d
you could make a TR class

<table>
<tr class="1">
<td></td>
</tr>
<tr></tr>
</table>

if that were a real table, class 1 would only be applied in that row. apply class 1 as you see fit, and tada...styled
I cant do that because the rows are output from a script. So I would end up with it applyed to every row. I may have to add an if statement when the rows are printed to determin which rows to highlight.

But I'm not quite ready to give up on the css.
redshift83 is offline   Reply With Quote
Old 06-02-2005, 09:07 PM   PM User | #4
s.g.d
New Coder

 
Join Date: Mar 2005
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
s.g.d is an unknown quantity at this point
hmm, thats over my head then.

sorry man, good luck
s.g.d is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:56 AM.


Advertisement
Log in to turn off these ads.