4 Replies - 320 Views - Last Post: 26 October 2011 - 11:33 PM

#1 BuhRock  Icon User is offline

  • D.I.C Regular

Reputation: 10
  • View blog
  • Posts: 256
  • Joined: 21-February 10

Background color of table help

Posted 25 October 2011 - 07:47 PM

So I'm trying to make the nested tables <hr> tags have background colors of blue, but I can't seem to get it working.

<html>
  <!-- prob3-->
<head>
  <style type=”text/css”>

th.th1 { background-color: blue; }


</style>
</head>
<body>
  

<table width="500" cellspacing="2" border="1">
<tr>
<td><div align="left">Nested Table 
don't use rowspan attribute</div>
<table height="80" width="110" cellspacing="2" cellpadding="2" align="left" border="1">
<tr>
<td>CSAT Management</td>
</tr>
</table>
<table width="380" cellspacing="2" cellpadding="2" align="right" border="1">
<th class ="th1">
<tr>
<td>Dean - Dr. Rogers</td>
</tr>
</th>
</table>
<table width="380" cellspacing="2" cellpadding="2" align ="right" border="1">
<th>
<tr>
<td>Associate Dean - Dr. Carter</td>
</tr>
</th>
</table>
</td>
</tr>
</table>







</body></html>


Is This A Good Question/Topic? 0
  • +

Replies To: Background color of table help

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3485
  • View blog
  • Posts: 10,043
  • Joined: 08-June 10

Re: Background color of table help

Posted 25 October 2011 - 08:17 PM

that’s because the syntax is all messed up. firstly I don’t see a need for nested tables at all. second, <th> goes into <thead>.
Was This Post Helpful? 0
  • +
  • -

#3 JacksonD  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 215
  • Joined: 18-October 11

Re: Background color of table help

Posted 25 October 2011 - 09:01 PM

Its rather messed up as Dormlilich said.. Also sorry for repeating buts its all the same errors as Dormlilich said, Why nested?
Was This Post Helpful? 0
  • +
  • -

#4 BuhRock  Icon User is offline

  • D.I.C Regular

Reputation: 10
  • View blog
  • Posts: 256
  • Joined: 21-February 10

Re: Background color of table help

Posted 26 October 2011 - 07:39 PM

It was an assignment.
Was This Post Helpful? 0
  • +
  • -

#5 JacksonD  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 215
  • Joined: 18-October 11

Re: Background color of table help

Posted 26 October 2011 - 11:33 PM

I see. I rest my.. case?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1