Free2Code
 
Time: 2008-11-21, 09:46pm
Tables pushing stuff down.
Subject: Tables pushing stuff down.  ·  Posted: 2006-03-29, 12:29am
Rank: ? (11)
Member #: 26731
I'm an idiot, so this is probably really simple, but I dunno.

I have three tables which are all aligned to the left, then I had one which is aligned to the center. The table aligned to the center gets pushed down way below all of the other tables. I really dunno how to fix this. If I put the tables below the one in the center, the same thing happens with my left aligned tables, whats causing this?

 
  Reply to this ·  Post link ·  Top
Subject: Re: Tables pushing stuff down.  ·  Posted: 2006-03-29, 02:56am
Rank: ? (4821)
Member #: 3416
could you be more specific? even better, a link to a page showing the problem, or some code showing the problem.

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top
Subject: Re: Tables pushing stuff down.  ·  Posted: 2006-03-29, 08:20am
Rank: ? (11)
Member #: 26731
Okay, heres the best way I can think to describe it.

Basically, theres three tables for navagational purposes situated on the left of the site (<table align=left valign=top> . Each table has that tag, and is within one big table with those tags. Then the page has the actual page content which is one table and is aligned to center (<table align=center valign=top> . Problem being that it gets pushed way down to the bottom of the page (below all the other tables) as though it wasn't aligned atall. Since these three tables are particularly long, it presents a problem for the content in thecenter as you need to scroll to the bottom of the page, effectively ruining the ease of use of the navagation and creating an unsightly hassle.

Heres the idea of the layout:

Nav1
Nav2 Content
Nav3

Heres what happens:

Nav1
Nav2
Nav3

Content

» Post edited 2006-03-29, 10:12am by Tape.

 
  Reply to this ·  Post link ·  Top
Subject: Re: Tables pushing stuff down.  ·  Posted: 2006-03-29, 12:44pm
Rank: ? (1224)
Member #: 15685
we need to see your code of the table to determine the problem...

Did u put the Content td in the same <tr> as the Nav2 td?? Meaning did u put it in the same row?

Anyhoooo u can try this:
Code:
  1. <table align="left" valign="top">
  2. <tr><td>Nav1</td><td>&nbsp;</td></tr>
  3. <tr><td>Nav2</td><td>Contents</td></tr>
  4. <tr><td>Nav3</td><td>&nbsp;</td></tr>
  5. </table>


» Post edited 2006-03-29, 12:47pm by Viper55.

Stick and Stones may break my bones but Caricatures will cause a riot!
 
  Reply to this ·  Post link ·  Top
Subject: Re: Tables pushing stuff down.  ·  Posted: 2006-03-30, 05:07am
Rank: ? (4821)
Member #: 3416
i don't remember what exactly the align attribute does for a table, but there is no valign: valign is for td tags.

the outer table viper gave looks like it would do what you want, but i'm not totally sure what it is you want.

you might also consider using css to get this layout instead of tables. here's a basic example of a layout with navigation on the left and content on the right:
Code:
  1. <div id="content" style="margin-left: 200px;">
  2.   Content
  3. </div>
  4. <div id="navigation" style="position: absolute; left: 0; top: 0; width: 200px;">
  5.   Nav1
  6.   Nav2
  7.   Nav3
  8. </div>

i've set this up with the content coming first, since that will make it display first without having to wait for the navigation to load. i expect that normally people don't want to look at the navigation until they've checked out the content and decided they want to look at something else.

also, i'm not completely sure that this code will work since i've not tested it but only proved it correct.

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top
Subject: Re: Tables pushing stuff down.  ·  Posted: 2006-03-30, 12:12pm
Rank: ? (1224)
Member #: 15685
oops my mistake.....yeah the valign goes into the TD tags

Stick and Stones may break my bones but Caricatures will cause a riot!
 
  Reply to this ·  Post link ·  Top
Subject: Re: Tables pushing stuff down.  ·  Posted: 2006-12-05, 03:37am
Rank: ? (2)
Member #: 29319
try nesting tables, it's very effective to solve your problems....

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons