Nov 8, 2009
Pages: 1, 2

Simple Layouts

free web hosting

Read Latest Entries..: (Post #14) by Adamrosso on Aug 8 2005, 12:37 PM.
great tutorial. will defantly help the beginners to html
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > Tutorials

Simple Layouts

Joshthegreat
New to HTML? try this simple website layout to get you started.

Well, start your site by creating a table to display your content.
HTML
<html>
<head>
<title>
My Webpage
</title>

<STYLE type=text/css>
<!--
@import url( yourname.css );
-->
</STYLE>
</head>

<body>

<table width="700" border="1" cellpadding="3" cellspacing="0" align="center" class="MAIN_TABLE">
<tr>
<td valign="top" height="100" colspan="2" class="CELL">
Your banner
</td>
</tr>
<tr>
<td width="15%" valign="top" height="25" class="CELL">
Menu
</td>
<td width="85%" valign="top" height="25" class="CELL">
Main Content
</td>
</tr>
<tr>
<td width="15%" valign="top" height="400" class="CELL">
<li><a href="link">Link</a>
<li><a href="link">Link</a>
<li><a href="link">Link</a>
<li><a href="link">Link</a>
<li><a href="link">Link</a>
<li><a href="link">Link</a>
</td>
<td width="85%" valign="top" height="400" class="CELL">
Your Main Content
</td>
</tr>
</table>

</body>
</html>


Save this file as 'Yourfile.html'

You have to say that if you have seen this file in action, it's really very dull.
So... Lets liven it all up with some css.

CSS can look quite complicated at first. Well, don't let that scare you away. It's actually quite simple.
HTML
BODY { BACKGROUND-COLOR: #0066CC; FONT-COLOR: #000000; FONT-FAMILY: verdana; TEXT-DECORATION: underline;
}


Save this file as Yourname.css.
You will notice that all this will do is make the bacground blue, and change the font to Verdana. This really doesn't do too much for your site. So lets spruce up the links shall we?

HTML
A { FONT-COLOR: #0066CC; }

A:hover { FONT-COLOR: #000000; TEXT-DECORATION: none;
}


This will make the links blue with an unerline. It will also mean that when you hover your mouse over the links the unerline will dissapear, they will turn black and the text will become bold.

Well your site will still be looking quite dull. So lets spruce up your table adding the class tag in your html. You'll notice in the table code at the top of the page you'll see class="MAIN_TABLE". This defines the table to you can customise it's appearence in the CSS.

HTML
.MAIN_TABLE { BACKGROUND-COLOR: 000000; BORDER: 1px solid #000000;
}



This will make the main table background black.
You'll also notice that in the html there is a class="CELL" bit of code on all of the cells. So lets spruce them up.

HTML
.CELL { BACKGROUND-COLOR; #FFFFFF;


This will make the cells white.
Well you can add whatever content you like and you may want to add some background images and regular images to make it look better. Also change the colors to suit what you want it to look like.

Well, hope my basic tutorial has helped some of you. If I happen to have a made a mistake somewhere, please tell me. And I'll correct it.

 

 

 


Comment/Reply (w/o sign-up)

Raptrex
pretty nice even though i didnt try it
i just looked at it really quick but its excellent for beginners

i wish i had this when i started

Comment/Reply (w/o sign-up)

NotoriousZach
I agree great job....The basic stuff can help the people trying to learn HTML.

Comment/Reply (w/o sign-up)

Joshthegreat
Thanks for your comments guys. That makes me feel happy that I can actualy contribute with a good tutorial. I'll probably write some more ones now, hopefully they'll be as decent as this one.

Comment/Reply (w/o sign-up)

HmmZ
Nicely detailed and covers some important basic aspects, thanks for your great tutorial smile.gif

Comment/Reply (w/o sign-up)

rectab
pretty nice even though i didnt try it

Comment/Reply (w/o sign-up)

yoofus
Good work Josh, I didn't try it but it will really help beginner webmasters.

Comment/Reply (w/o sign-up)

snlildude87
I agree with what everyone said - nice simple tutorial! The only thing I don't agree with is using tables for positioning because the browser has to render every aspect of the table first before displaying your site.

Other than that, way to go! smile.gif

Comment/Reply (w/o sign-up)

demongaara
ooo thanks a bunch, ive been looking for something liek this. now i need to learn how to slice layouts ><

Comment/Reply (w/o sign-up)

yoofus
Do you mean slice in PS, because that is easy tongue.gif

Comment/Reply (w/o sign-up)

Latest Entries

Adamrosso
great tutorial. will defantly help the beginners to html

Comment/Reply (w/o sign-up)

Joshthegreat
save the page as .php
Now where the menu is, copy and paste the menu part of the code into a new file and name it menu.html.
Now where ther menu used to be type in <? include('menu.html') ?>.
This should mean you only have to change one file for every page.

Comment/Reply (w/o sign-up)

choetry
I don't know about this much but I tried it on Microsoft Frontpage and it looks really nice... however i have a question (might be silly):

Take the page you have created in your tutorial, and I want that to appear in my every page, with everything the same in every page except the main content. And one day you decide to add one more link to that column under 'menu', do i have to add it manually to every page or how can i just do it once and the rest of the pages auto-update by itself?


thanks

Comment/Reply (w/o sign-up)

Joshthegreat
Yeah, I just prefer using the import CSS tag rather than the link tag. I guess that's just me. I find the CSS one eaier to remember, I always find myself forgetting the link tag for some reason.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2

Searching Video's for simple, layouts
See Also,
advertisement


Simple Layouts

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com