tags:

views:

68

answers:

2
<tr class="dotted">
    <td><strong>Profile Information</strong></td>
</tr>

how to write the "dotted" class in css to achieve that effect?

+2  A: 

could do

tr.dotted td 
{
    border-bottom: dotted 1px black;
}

but you'd have to have cellspacing="0" or border-collapse:collapse; set so there are no breaks in the line.

John Boker
seems it's not working?
Shore
show your current code and you'll get more answers.
John Boker
or, i was wrong and was looking at the post above, it should be border-bottom: dotted 1px black;
John Boker
it's right this time:)
Shore
You can't use class attribute of parent element to format child's innerHTML.
adatapost
Yes you can ... It's called a combinator.
rpflo
A: 

Add class to td instead of tr. It wont work with TR.

<tr>    
 <td class="dotted"><strong>Profile Information</strong></td>
</tr>
adatapost
why wont it work with TR?
Shore
adapost, it works with the class on the tr http://www.w3.org/TR/CSS2/selector.html
John Boker