<div class="FrameBig" style="float:left; width:25%; height:45px; margin-top:9px; margin-bottom:25px; margin-left:50px; text-align:left">
<table width="100%" cellpadding="0px" cellspacing="0px" border="0px">
<tr>
<td>Cell One</td>
<td>Cell Two</td>
</tr>
<tr>
<td>Cell Three</td>
<td>Cell Four</td>
</tr>
</table>
</div>
FrameBig is
.FrameBig
{
background-color:#D1F3FF;
color:#5793C9;
font-size:medium;
font-weight:bold;
margin:2px;
}
The above code produces a table that is entirely blue (the background colour in FrameBig)
The most bizarre thing is when I change it to this:
<div class="FrameSmall" style="float:right; width:25%; height:45px; margin-top:9px; margin-right:50px; margin-bottom:50px; text-align:left">
<table width="100%" cellpadding="0px" cellspacing="0px" border="0px">
<tr>
<td height=45px width=50% valign="middle">
Diner ID:</td><td height=45px width=50% align="right" valign="middle">
<asp:DropDownList ID="DinerUID" runat="server"></asp:DropDownList></td>
</tr>
<tr>
<td height=45px width=50% valign="middle">
Diner Name:</td><td height=45px width=50% align="right" valign="middle">
<asp:DropDownList ID="DinerNameUID" runat="server"></asp:DropDownList></td>
</tr>
</table>
</div>
You would expect it to be the same as the first one, with a blue background, but for some reason only the FIRST row is blue, the second row is white.
Can anyone offer any explanation? The rest of the CSS file contains absolutely nothing that could interfere.