CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
HTML

 



andy7t
User

Sep 2, 2003, 4:38 AM

Post #1 of 4 (542 views)
HTML Can't Post

OK, so this is more a HTML question that Perl, but perl is involved.

I'm creating a dynamic page, which on one side is your navigation bar, and the left is the content of the page.

But, in many circumstances, my navigation is longer than my content, making the page look strange, because my content is a different coloured table.

Take a look at http://game.warzone-game.co.uk/demo.html to see what i mean.

My Code is set out like this:

<table width=99%><tr><td>

NAVIGATION

<td valign=top>
CONTENT

Well, that's a simplfed version of it anyway.

Any ideas how to fill the rest of the screen towards the bottom?

Remember - it's dynamic, so i can't just add <BR><BR> on the end.


KevinR
Veteran


Sep 2, 2003, 10:59 AM

Post #2 of 4 (537 views)
Re: [andy7t] HTML [In reply to] Can't Post

you may want to ask this question on another forum that deals with more than Perl questions if you get no replies here:

http://www.htmlforums.com/

I took a quick look but there is too many embedded tables to want to try and figure it out.
-------------------------------------------------


andy7t
User

Sep 3, 2003, 2:55 AM

Post #3 of 4 (534 views)
Re: [KevinR] HTML [In reply to] Can't Post

OK,

I've layed on another Demo for you.

game.warzone-game.co.uk/demo2.html

It's easier to understand. I will try those forums.


KevinR
Veteran


Sep 3, 2003, 10:52 AM

Post #4 of 4 (529 views)
Re: [andy7t] HTML [In reply to] Can't Post

If you keep your table structure like you have it in the demo2 page then the tables should do as you want:

<table width="90%" border=1 height="90%">
<tr>
<td width="25%" valign="top">
Navigation
</td>
<td valign="top" width="50%">
<!-- embedded table -->
<table bgcolor="RED" width="100%" border="1" height="100%">
<tr>
<td>
why a separate table here?
</td>
</tr>
</table><!-- end of embedded table -->
</td>
<td valign="top" width="25%">
more content here
</td>
</tr>
</table>

you really should be using more modern HTML code with CSS and the box model to design your layouts.
-------------------------------------------------


(This post was edited by KevinR on Sep 3, 2003, 10:53 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives