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

HTML table row problem 1

Status
Not open for further replies.

Zoon

Technical User
Joined
Nov 27, 2002
Messages
28
Location
US
Could somebody tell me why this calendar looks wrong with DECEMBER, but looks right without <TH bgcolor=BROWN>DECEMBER</TH>

<HTML><HEAD><style>a{text-decoration:none}</style></HEAD>
<body>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 WIDTH=115 BGCOLOR=Yellow>
<TH bgcolor=BROWN>DECEMBER</TH>
<tr ALIGN=RIGHT bgcolor=red>
<td width=16>S</td>
<td width=17>M</td>
<td width=16>T</td>
<td width=17>W</td>
<td width=16>T</td>
<td width=17>F</td>
<td width=16>S</td>
</tr>
<tr ALIGN=RIGHT bgcolor=silver>
<td><br></td>
<td>1</td>
<td>2</td>
<td><a href=DATE3.HTM>3</a></td>
<td>4</td>
<td>5</td>
<td><a href=DATE6.HTM>6</a></td>
</tr>
<tr align=right bgcolor=green>
<td><a href=DATE7.HTM>7</a></td>
<td><a href=DATE8.HTM>8</a></td>
<td>9</td>
<td><a href=DATE10.HTM>10</a></td>
<td><a href=DATE11.HTM>11</a></td>
<td><a href=DATE12.HTM>12</a></td>
<td><a href=DATE13.HTM>13</a></td>
</tr>
<tr align=right>
<td><a href=DATE14.HTM>14</a></td>
<td>15</td>
<td><a href=DATE16.HTM>16</a></td>
<td><a href=DATE17.HTM>17</a></td>
<td>18</td>
<td><a href=DATE19.HTM>19</a></td>
<td><a href=DATE20.HTM>20</a></td>
</tr>
<tr align=right>
<td><a href=DATE21.HTM>21</a></td>
<td><a href=DATE22.HTM>22</a></td>
<td>23</td>
<td><a href=DATE24.HTM>24</a></td>
<td><a href=DATE25.HTM>25</a></td>
<td>26</td>
<td><a href=DATE27.HTM>27</a></td>
</tr>
<tr align=right>
<td><a href=DATE28.HTM>28</a></td>
<td>29</td>
<td><a href=DATE30.HTM>30</a></td>
<td colspan=4><br></td>
</tr>
</TABLE>
</body></html>
 
Code:
<TH bgcolor=BROWN [red]colspan="7"[/red]>DECEMBER</TH>

For xhtml capability (and aesthetic pleasure), you could consider changing all tags to lowercase and putting quotes ("") around attributes.

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top