Page 1 of 1

Aligning page elements

Posted: Fri Apr 02, 2004 9:02 am
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!

Posted: Fri Apr 02, 2004 9:53 am
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>

Posted: Fri Apr 02, 2004 10:01 am
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!

CSS BABY!

Posted: Fri Apr 02, 2004 11:24 am
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.

Posted: Fri Apr 02, 2004 12:44 pm
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