Getting navigation column to match content column

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
Nate
Posts: 42
Joined: Sun 11. Apr 2004, 18:26

Getting navigation column to match content column

Post by Nate »

I'm trying to get my navigation column to be the same height as my content column. I'm using the ever-popular 2-column layout, with navigation in the left column, and content in the "main" column.

If I have a short article, then the nav column goes way past the end of the "main" column; if I have a long article, then the nav column doesn't stretch to the bottom of the "main" column.

I have rendering set to "table" in the back end; there must be some html I can stick somewhere in the template to make the lengths of both columns match the longer of the two. Can anyone help?
To fathom hell or soar angelic...
Nate
Posts: 42
Joined: Sun 11. Apr 2004, 18:26

Post by Nate »

Figured it out-- here's the solution for anyone else who wants to know:

In 'left', insert this into the beginning:
<table width="730" border="0" cellpadding="0" cellspacing="0">
<tr valign="top"><td width="160" background="img/mynavbackground.jpg">
and this into the end:
<td>
and in 'main', insert this into the beginning:
<td width="549">
and this into the end:
</td></tr></table>
Of course, you will need to adjust the widths to correspond to the actual widths of your nav column, main column, and combined column width, and you'll need to use the filename of the actual image you use for your nav column background. But thats it!
To fathom hell or soar angelic...
Post Reply