Basic table formating problem

Discussion in 'HTML & Website Design' started by Tamarack, Jul 22, 2009.

  1. #1
    Hello,
    I have a table with two rows.
    The first row has 7 cells each spanning 2 columns each.
    THe next row 10 cells some spanning two colums.
    The intent is to have the cells in the second row line up with the cells in the row above or start and end directly in the middle of the cells above.

    All the cells are to fixed in width (2x for those that colspan=2)

    The browser is adding 4 cells for reasons I don't understand.

    How can I get the desired effect (see class definitions at the bottom)

    Thanks!

    (you can see it here - don't worry about the other items on the page - just
    part of a template)
    http://www.idahoresortrentals.com/calendar_display.php

    <table class="table_fix" "align="center" cellspacing="0" cellpadding="0" border="1" bgcolor="#804000" >
    <tr bgcolor="#BD8552">
    <td class="td_fixed" colspan="2">Sunday</td>
    <td colspan="2">Monday</td>
    <td colspan="2">Tuesday</td>
    <td colspan="2">Wednesday</td>
    <td colspan="2">Thursday</td>
    <td colspan="2">Friday</td>
    <td colspan="2">Saturday</td>
    </tr>
    <tr bgcolor="#DEAF3A">
    <td class="td_fixed">&nbsp; </td>
    <td colspan="2" bgcolor="#A7AC45"> some text<td>
    <td>&nbsp; </td>
    <td>&nbsp; </td>
    <td colspan="2" bgcolor="#A7AC45"> other text<td>
    <td colspan="2" bgcolor="#A7AC45"> foobar<td>
    <td>&nbsp; </td>
    <td colspan="2">&nbsp; </td>
    <td>&nbsp; </td>
    <td bgcolor="#A7AC45"> double foorbar<td>
    </tr>
    <tr>


    </tr>
    </table>

    .table_fix{
    table-layout:fixed;
    width:756;
    }
    .td_fix{
    max-width:54px;
    min-width:54px;
    }
     
    Tamarack, Jul 22, 2009 IP
  2. Tamarack

    Tamarack Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Problem SOLVED! no slashes on several closing tags!

    I need glasses!

    That would have been an easy PR3 link for someone with better vision
     
    Tamarack, Jul 22, 2009 IP