Aligning page elements

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Rhodezy
Forum Newbie
Posts: 3
Joined: Fri Apr 02, 2004 9:02 am

Aligning page elements

Post by Rhodezy »

Admin Edit: Topic split from another thread.

How would I align a file, I dont know if this is the right way about doing this but - I want to have two navigation menu's and I have created them both (menu1.tpl , menu2.tpl).

I would like one aligned to the left and one to the right (either side of the page content). So far this is what I have in the header.php file.

Code: Select all

<?php
echo "<table><td valign="left">(menu1.tpl)</td></table>";

echo "<table><td valign="right">(menu2.tpl)</td></table>"; 
?>
But im guessing that is completly wrong.
Please help - If you dont understand my question just ask :cry: , thanks!
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

~rhodezy:

From the sticky:
5. Do not hijack other people's threads, post your own topic and reference (i.e. link to) the other thread in it.
~Zorth:

Sometimes, tables are just much easier to deal with layout. This should work.

Code: Select all

<table align = "left" width = "50%">
    <tr>
        <td align = "center">
            This is aligned on the left half of the page.
        </td>
    </tr>
</table>
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Rhodezy
Forum Newbie
Posts: 3
Joined: Fri Apr 02, 2004 9:02 am

Post by Rhodezy »

Sorry, I didnt read that :oops: .

But ill make this real simple. Go to http://mdgr.co.uk/members I have two different Menu's: Menu and Navigation. The code looks like this at the moment:

include("menu.tpl");

include("navi.tpl");

- I want to know how to align navi.tpl to the right.

Please, please, please help!!!!

Thanks!
randomblink
Forum Commoner
Posts: 51
Joined: Wed Jan 28, 2004 11:27 am
Location: Tulsa, Oklahoma, just this side of hell...
Contact:

CSS BABY!

Post by randomblink »

Check out CSS...

A good place to start is http://www.w3schools.com because they offer a little training course for free on it... AND they have a decent reference. Of course you could go straight to the w3.org site and get the lowdown on EVERYTHING there... But w3schools is great cause they give you examples and a place to try it all out.
Rhodezy
Forum Newbie
Posts: 3
Joined: Fri Apr 02, 2004 9:02 am

Post by Rhodezy »

Couldnt some one tell me how to do it quickly :wink: thats all I need, I can work the rest out my self :oops:~


EDIT: Im such an idiot - I think I got it all sorted now :P
Post Reply