I’m kind of new to CSS, but I’m comfortable with it and haven’t had any trouble until just now. I have one page that contains a lot of tables with a number of them formated the same way. So I set up the css file with the following:
[CODE]table.internal
{
border-style: none;
border-spacing: 0px 0px;
text-indent: 8px;
}
th,tr.visible
{
background-color: #FFFFFF;
color: #000000;
font-weight: bold;
text-align: center;
}
tr.odd {background-color: #FF0000;}
tr.even {background-color: #000000;}
The tables have the following structure:
[code=html]<table class=”internal”><tr class=”visible”><th>Level</th><th>Base Attack Bonus</th><th>Fort Save</th><th>Reflex Save</th><th>Will Save</th><th>Special</th></tr>
<tr class=”odd”></tr><td>1st</td><td class=”center”>+0</td><td class=”center”>+2</td><td class=”center”>+2</td><td class=”center”>+2</td><td>–</td></tr>
<tr class=”even”></tr><td>2nd</td><td class=”center”>+0</td><td class=”center”>+2</td><td class=”center”>+2</td><td class=”center”>+2</td><td>–</td></tr>
<tr class=”odd”></tr><td>3rd</td><td class=”center”>+0</td><td class=”center”>+2</td><td class=”center”>+2</td><td class=”center”>+2</td><td>–</td></tr>
<tr class=”even”></tr><td>4th</td><td class=”center”>+0</td><td class=”center”>+2</td><td class=”center”>+2</td><td class=”center”>+2</td><td>–</td></tr>
<tr class=”odd”></tr><td>5th</td><td class=”center”>+0</td><td class=”center”>+2</td><td class=”center”>+2</td><td class=”center”>+2</td><td>–</td></tr>
<tr class=”even”></tr><td>6th</td><td class=”center”>+0</td><td class=”center”>+2</td><td class=”center”>+2</td><td class=”center”>+2</td><td>–</td></tr>
</table>
While my first table looks correct, all of the others are messed up. The “visible” row works correctly, but everything after that is formated only as “internal”. What’s going on? I thought maybe it was something with dreamweaver, but when I opened it in my browser it was the same thing. With right-clicking in the design view of dreamweaver you can see what css style is affecting that element and only “internal” was affecting the rows.
Please help, thanks!
LT