Help - Search - Members - Calendar
Full Version: Tabgle col size
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
HLA91
Hi everyone

I am making a table (code below) and the shape is fine its just when I am writing in the left nav section I want it so when the text reaches the end it goes underneath because at the moment it just expands the column.

Also the right column when writing on the first line it drops underneath when you reach the end but then on the second line when you reach the end it expands the column.

The banner section is doing the same as the left nav ( expanding it on the first line not dropping underneath) and the footer expands it as well and the main section


I think what I need is something to lock the column sizes or does anyone know what I can do?

CODE

<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<div align="center">
  <center>
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1028" height="100%" id="AutoNumber1">
    <tr>
      <td width="1026" height="48" colspan="3" valign="top">Banner</td>
    </tr>
    <tr>
      <td width="88" height="601" rowspan="2" valign="top">Leftnav</td>
      <td width="835" height="575" valign="top">main
      <p> </td>
      <td width="97" height="601" rowspan="2" valign="top">
      right col</td>
    </tr>
    <tr>
      <td width="835" height="22" valign="top">footer</td>
    </tr>
  </table>
  </center>
</div>

</body>

</html>




Many thanks

HLA91
pandy
The column is so narrow that I expect many words will be wider than than it. Then the cell will inevitably expand. Why not make it wider? I'd also recommend that you don't use a fixed width for the total width of the layout table. It's wider than my screen. Does it really have to be?
HLA91
ok how do I make the width fit the screen then? Because if I dont specify width it doesn't fill the screen.
pandy
Use %. smile.gif
HLA91
Thank you I think its sorted now
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.