Forum Moderators: not2easy

Message Too Old, No Replies

Span Class=....

Help!

         

felex

1:53 pm on Feb 5, 2004 (gmt 0)

10+ Year Member



Anyone who can tell me the difference between:
Version 1:
<tr>
<td> <span class="example"> text text text </span>
</td>
</tr>

and
Version 2:
<tr class="example">
<td> text text text
</td>
</tr>
?

One of the monitors in our office displays strangely if I use the Version 2.

Thanks a lot for your help!

pageoneresults

2:03 pm on Feb 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello Felex, Welcome to WebmasterWorld!

In the first instance, the <span> is styling an inline element which is what the <span> is for.

In the second instance, you are applying that style to the entire Table Row.

Depending on what your styles are for that class example will determine the issues that you are seeing.

felex

2:22 pm on Feb 5, 2004 (gmt 0)

10+ Year Member



Hi, Pageoneresults! Thanks so much. I think I understand the difference now. Have a nice day! :)