Alignment problem with table

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Alignment problem with table

    Hello, I am trying to make some pages in PHP on Dreamweaver. I am using tables
    to make the main pages, and making Include files for things like the Navigation
    bar, which is also a table, to nest inside the table cells of the main page, if
    that makes sense. I can't seem to get the cells to cooperate, however. They
    want to keep shifting left. And the cell widths will not stay where I put them.
    Any idea what is going on?

    <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr align="center" valign="middle">
    <td width="4" height="32">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    <td width="42">
    <div align="center">
    <a href="http://www.pageestates.com/PennysSite/index.php" target="_self">
    &nbsp;&nbsp;Home&nbsp;&nbsp;
    </a>
    </div>
    </td>
    <td width="4">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    <td width="112">
    <div align="center">
    <a href="http://www.pageestates.com/PennysSite/buying.php"
    target="_self">Buying A Home
    </a>
    </div>
    </td>
    <td width="4">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    <td width="105">
    <div align="center">
    <a href="http://www.pageestates.com/PennysSite/investing.php"
    target="_self">
    Selling a Home
    </a>
    </div>
    </td>
    <td width="4">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    <td width="160">
    <div align="center">
    <a href="http://www.pageestates.com/PennysSite/investing.php"
    target="_self">Investing in Real Estate
    </a>
    </div>
    </td>
    <td width="4">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    <td width="119">
    <div align="center">
    <a href="http://www.pageestates.com/PennysSite/tour.php"
    target="_self">Tour of Asheville
    </a>
    </div>
    </td>
    <td width="4">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    <td width="112">
    <div align="center">
    <a href="http://www.pageestates.com/PennysSite/community.php"
    target="_self">Community Info
    </a>
    </div>
    </td>
    <td width="4">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    <td width="111">
    <div align="center">
    <a href="http://www.pageestates.com/PennysSite/healthy.php"
    target="_self">Healthy Home
    </a>
    </div>
    </td>
    <td width="10">
    <img src="http://www.pageestates.com/PennysSite/images/greyLineSmall.jpg"
    width="4" height="13" align="middle">
    </td>
    </tr>
    </table>

    amyfromNC Guest

  2. Similar Questions and Discussions

    1. Vertical alignment in table cells
      If I create a table and then merge several cells vertically, I can enter some text and can set the vertical alignment of the new 'spanned' cell to...
    2. Table alignment...
      Hi. I have a left-aligned table which, when I view it in Design View, is immediately below my page heading, exactly where I want it. But when I...
    3. table alignment
      Anyone know how to put plain text on an image which is not a background? Thanks
    4. SWF alignment in HTML Table
      i've created a "seamless" HTML template using tables. i want to replace an img element with a flash element. img size is 10 x 10. <td> width is...
    5. Table Alignment in Mozilla
      Hello! I can't figure out if this is a standards thing or if I am missing some Moz-knowledge, but I have my table set with align="center" and IE...
  3. #2

    Default Re: Alignment problem with table

    For starters, the align and valign attributes aren't valid for a table row -
    they are supposed to be in table cells only. So moving those attributes to the
    actual cells will help.

    Second, do all of your width values add up to 800? If they don't, that could
    be part of the problem, too.

    Rob Huddleston
    Adobe Certified Dreamweaver 8 Developer

    robhuddles Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139