Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hard-set size for tables?

Status
Not open for further replies.

jisoo22

Programmer
Apr 30, 2001
277
US
Hello all,

I have a small problem. I'm using a table for my webpage layout but I believe I'm having some formatting issues. I'll describe it as well as I can. The table is made up of 2 rows and 2 columns (a 2x2 square). The lower left square is further divided into several rows (this is my navigation bar). Here's the problem: the box to the right of the navigation bar is where all the text goes, the body of the page. I insert a second table here so that I can format the text but the more text I put in, the more the rows of the navigation bar stretch down in height. They're the perfect height when there's no text in the body (25 pixels) but I want them to stay that way no matter how much text is put into the body. Does anyone know how this is accomplished?

Thanks,
Jisoo22
 
Here's the html for that table by the way.

Thanks,
Jisoo22

Code:
<table width=&quot;760&quot; height=&quot;570&quot; border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
  <tr> 
    <td width=&quot;125&quot; height=&quot;125&quot;> </td>
    <td align=&quot;center&quot;>stuff</td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td width=&quot;125&quot; height=&quot;25&quot; align=&quot;center&quot; valign=&quot;middle&quot;><a href=&quot;index.htm&quot;>Home</a></td>
    <td rowspan=&quot;9&quot; align=&quot;left&quot; valign=&quot;top&quot; cellpadding=> <table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
        <tr>
          <td width=&quot;5&quot;>
<p> </p>
            </td>
          <td valign=&quot;top&quot;> <p>text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text </p>
            </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td height=&quot;25&quot; align=&quot;center&quot; valign=&quot;middle&quot;><a href=&quot;stuff.htm&quot;>stuff</a></td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td height=&quot;25&quot; align=&quot;center&quot; valign=&quot;middle&quot;><a href=&quot;stuff.htm&quot;>stuff</a></td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td height=&quot;25&quot; align=&quot;center&quot; valign=&quot;middle&quot;><a href=&quot;stuff.htm&quot;>stuff</a></td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td height=&quot;25&quot; align=&quot;center&quot; valign=&quot;middle&quot;><a href=&quot;stuff.htm&quot;>stuff</a></td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td height=&quot;25&quot; align=&quot;center&quot; valign=&quot;middle&quot;><a href=&quot;stuff.htm&quot;>stuff</a></td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td height=&quot;25&quot; align=&quot;center&quot; valign=&quot;middle&quot;><a href=&quot;stuff&quot;>stuff</a></td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td height=&quot;25&quot; valign=&quot;middle&quot;><a href=&quot;stuff.htm&quot;>stuff</a></td>
  </tr>
  <tr align=&quot;center&quot;> 
    <td valign=&quot;top&quot;> </td>
  </tr>
</table>
 
A-ha! Figured it out, apparently I had forgotten to put a specific height for the last row of the navigation bar. I set it so that it's the rest of the height of the table. The rest of the cells seem to stick to their size after that. Thanks for the suggestion, but I'm trying to keep a border of 1 consistently through the page.

Thanks!
Jisoo22
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top