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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you place a class on a row 1

Status
Not open for further replies.

zishan619

Programmer
May 28, 2003
284
MX
Hi:
I was wondering if my statement is possible.
<tr class=reportsection>
<td>hola</td>
</tr>
Can you place a class on a row??? and if yes how?
Thanks
Z
 
yes.

<style>
.reportsection {background-color: silver;}
</style>

..
..

<tr class=reportsection>
<td>hola</td>
</tr>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Thank you but how come my code would not work:
<style>
.halfsquare
{
FONT-WEIGHT: bold;
FONT-SIZE: 8pt;
BORDER-BOTTOM: black thin solid;
BORDER-LEFT: black thin solid;
BORDER-TOP: none;
FONT-FAMILY: 'Times New Roman', Arial;
BACKGROUND-COLOR: white
}
</style>
<TR class=halfsquare>
<TH ROWSPAN=5>PEOPLE INFORMATION</TH>
<TH COLSPAN=2 VALIGN=TOP>SATURDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>SUNDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>MONDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>TUESDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>WEDNESDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>THURSDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>FRIDAY</TH>
<TH COLSPAN=6 ROWSPAN=3 VALIGN=TOP WIDTH=20>BIWEEKLY TOTAL HOURS AND EARNINGS</TH>
<TH COLSPAN=6 ROWSPAN=3 VALIGN=BOTTOM ALIGN=LEFT>ID #</TH>
</TR>
Please Help
 
The only thing that isn't working is the borders, do them like this...


<style>
.halfsquare
{
FONT-WEIGHT: bold;
FONT-SIZE:8pt;
BORDER-BOTTOM: black 1px solid;
BORDER-LEFT: black 1px solid;
BORDER-TOP: none;
FONT-FAMILY: 'Times New Roman', Arial;
BACKGROUND-COLOR: white
}

.halfsquare th
{
BORDER-BOTTOM: black 1px solid;
BORDER-LEFT: black 1px solid;
BORDER-TOP: none;
}
</style>
<table>

<TR class=halfsquare>
<TH ROWSPAN=5>PEOPLE INFORMATION</TH>
<TH COLSPAN=2 VALIGN=TOP>SATURDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>SUNDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>MONDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>TUESDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>WEDNESDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>THURSDAY</TH>
<TH COLSPAN=2 VALIGN=TOP>FRIDAY</TH>
<TH COLSPAN=6 ROWSPAN=3 VALIGN=TOP WIDTH=20>BIWEEKLY TOTAL HOURS AND EARNINGS</TH>
<TH COLSPAN=6 ROWSPAN=3 VALIGN=BOTTOM ALIGN=LEFT>ID #</TH>
</TR>
</table>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top