Author Topic: Getting tables next to each other  (Read 2972 times)

ahluka

  • Jackass IV
  • Posts: 794
  • Karma: +10/-201
Getting tables next to each other
« on: February 23, 2006, 12:20:51 PM »
I haven't been using HTML for very long, so be gentle :)

I want a table with a news column in the center and a table on the right with some other stuff in it (probably links) but if I actually define two tables the one on the right is underneath and to the right of the center one.

Like:

Code: [Select]

/-----------------\
| table one      |
|                      |
|                      |
\-----------------/
                        /----------------\
                        | table two     |
                        |                     |
                        |                     |
                        \-----------------/


I want table two directly to the right of one.

Here's what I've got right now:

Code: [Select]



Ahluka.co.uk












News


23rd Feb. 2006



I've decided not to keep buggering around by changing this site every month or so
and to keep this main page and just link to areas I add.



I'm about to update my blog: Click here to read it









Software


I've got a few peices of software I've written that someone else could find useful /
educational / laughable. When I've got a while I'll link to them here.











I just previewed this post and the lines in my neat ASCII art are fucked. Oh well.

Canuck

  • Eh?!!
  • Founders
  • Posts: 792
  • Karma: +51/-3
  • Andy Moog Fan
    • My Website
Getting tables next to each other
« Reply #1 on: February 23, 2006, 01:22:01 PM »
I havent used tables for some time.  I know some people will suggest you use CSS for something like this, I would too, but I did find a solution to your problem.

Code: [Select]




Ahluka.co.uk
























News

23rd Feb. 2006


I've decided not to keep buggering around by changing this site every month or so
and to keep this main page and just link to areas I add.


I'm about to update my blog: Click here to read it










Software

I've got a few peices of software I've written that someone else could find useful /
educational / laughable. When I've got a while I'll link to them here.













I put your two tables into another table, with each table as its own column.  I set the height of two s to 150, so that they are the same height, you can change that value to whatever you want.  If you take out that value you will see why I put it in.

Hopefully thats what you were looking for.

ahluka

  • Jackass IV
  • Posts: 794
  • Karma: +10/-201
Getting tables next to each other
« Reply #2 on: February 23, 2006, 01:35:18 PM »
I've never used CSS before so that'll be fine until I find some tutorials.

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Getting tables next to each other
« Reply #3 on: February 23, 2006, 02:02:05 PM »
Using CSS you'd want one or both as floats.  But of course that causes other problems also.