Forum Moderators: not2easy

Message Too Old, No Replies

Box size being ignored

         

DougWD

8:48 am on Apr 6, 2006 (gmt 0)

10+ Year Member



This class box size is being ignored (Table code only shows one <td> and is truncated, but shows you what I want to do):
--
<table width="98%" border="0" align="center" cellpadding="20" cellspacing="0" class="tablestuff"><tr valign="top">
<tr valign="top">
<td width="50%">
<td <p class="270box"> Text goes here.</p></td>
</tr>
</table>

CSS looks like this:
.270box {
width: 270px;
}

--

I have it set in a table with two columns, each 50% and the table is 98%. I just don't want the text under the images to expand with the sliding table.

What am I doing wrong?

Thanks again.

4hero

8:49 am on Apr 6, 2006 (gmt 0)

10+ Year Member



I replied to quickly there without properly inspecting your code.

You missed out a > on the td before <p class="270box">.
You also missed out </td> from the <td width="50%">
You had two <tr valign="top">
And I would avoid starting any css with numbers.

Try this:

<table width="98%" border="0" align="center" cellpadding="20" cellspacing="0" class="tablestuff">
<tr valign="top">"
<td width="50%">&nbsp;</td>
<td><p class="box270"> Text goes here.</p></td>
</tr>
</table>

.box270 {
width: 270px;
}

4hero

9:25 am on Apr 6, 2006 (gmt 0)

10+ Year Member



p.s. I just noticed a " here <tr valign="top">"

<tr valign="top">

Hope this helps ;)

DougWD

8:44 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



Yeah, and I forgot not to ever start css with a number :(

Changing the class to starting with a letter worked.

Sorry for that. I've moved away from doing web sites to different things, so I've forgotten much.

Thanks again.

4hero

9:08 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



nice one, glad to help :)