• 0

spacing problems


Question

2 answers to this question

Recommended Posts

  • 0

First of all, I wouldn't use tables with static width to layout the site. You have your tables set to a width of 974 pixels, which would be bad for a person using 800x600 resolution. Also, if the browser window is resized then the layout won't dynamically reflow to fit the window.

However, if you still decide to use tables, then read up on rowspan and when it should be used.

Finally, to make the images line up with the bottom of the navigation bar, use the following code. I used a css attribute to set the vertical alignment of the middle table cell to top.

<table width="974" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td width="108"> </td>

    <td width="740" style="vertical-align:top;"><img src="https://www.google.com/adsense/images/leaderboard_img.jpg" width="740" height="90" alt="goooogle"></td>
    <td width="120"><img src="https://www.google.com/adsense/images/skyscraper_img.jpg" width="120" height="600" alt="gooogle"></td>
  </tr>

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.