[Tutorial] Easy site layout
Here I will be explaining how to make an really nice looking layout with less fuss.
OK we are going to learn how to do a Simple PHP code which is really simple.
OK Example www.animegfx.net
I use PHP includes on my site Basicly a PHP Include is a line of code that you can add a file into a PHP Document. So say you do this
This is the top and left hand side of the main page index.
this is the right side and Bottom part of the main Page.
How did I get this to work you ask?
Well First thing first you need to make your site. Really simple layout is a Table layout if you do something simple it will work OK so lets try something simple
Open up your favorate text editors or if you have a webdevelopment program like DreamWeaver
Now we are going start off with something like
Now Save this page as top.php
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<table width="800" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<td><img src="logo.gif" width="800" height="150"></td>
<td height="236" valign="top" bordercolor="#000000"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<td width="22%" height="233">A little nave stuff gose over here </td>
We are going to do the bottom now
Open a new document and put this code in
Now save this file as bottom.php
<td width="24%">More Nave stuff gose over here </td>
Now your top should look something like this.
And the bottom should look something like this.
OK Now time for the Main Content of the site
This is really simple Seeing as your top has the open tag for the center table and your Bottom.php has the closeing tag all you have to do is the fallowing
Save this file as index.php
<? include('top.php'') ?>
Content gose here
<? include ('bottom.php') ?>
And your finished product should look like this.
I have included the Site template with the Logo Top and bottom.php so you can test it out for yourself Just a note your server must have PHP capibillitise Most free hosts Do so its good I hope you enjoyed this and have some fun with it
If you would like to use this template I have included the logo If you would like me to make you a logo you can PM me and I will make you up one.