Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

netscape, style sheets and table tags 1

Status
Not open for further replies.

Extras

Technical User
Nov 16, 2001
232
US
Have a quick question for the Netscape-CSS experts...

I have a table with a bunch of cells, please let me know if I can place the style sheet as a row tag attribute and have it control the display with the cells. For example will Option 1 work or will I have to use Option 2? I know Netscape(especially in different versions) does not recognize style sheets if they are table tag attributes.

Your advice would be welcome!!

OPTION 1
<tr class=&quot;Style1&quot;>
<td>Text</td>
<td>Text</td>
</tr>
<tr class=&quot;Style2&quot;>
<td>Text</td>
<td>Text</td>
</tr>

OPTION 2
<tr>
<td><Span class=&quot;Style1&quot;>Text</span></td>
<td><Span class=&quot;Style1&quot;>Text</span></td>
</tr>
<tr>
<td><Span class=&quot;Style2&quot;>Text</span></td>
<td><Span class=&quot;Style2&quot;>Text</span></td>
</tr>

 
Hi,

You should use OPTION 3:

<tr>
<td class=&quot;Style1&quot;>Text</td>
<td class=&quot;Style1&quot;>Text</td>
</tr>
<tr>
<td class=&quot;Style2&quot;>Text</td>
<td class=&quot;Style2&quot;>Text</td>
</tr>

Hope this helps!
relax.gif

 
Thanks! Am i therefore correct in my assumption that using style sheets as an attribute for <tr> does not work in some versions of Netscape?
 
I believe you are correct in assuming that. I don't know the answer to that, but it's more than likely a Netscape glitch. What version of NS do you get problems with, version 4?
relax.gif

 
Yes I see that problem creep up with Netscape 4. I appreciate your suggestion!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top