Jul 20, 2008

Simple Layouts

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2

free web hosting

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.

 

 

 


Reply

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

Reply

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

Reply

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.

Reply

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

Reply

rectab
pretty nice even though i didnt try it

Reply

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

Reply

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

Reply

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

Reply

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

Reply

Latest Entries

Adamrosso
great tutorial. will defantly help the beginners to html

Reply

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.

Reply

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

Reply

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.

Reply



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. free multiply layouts blue - 20.04 hr back. (1)
  2. pretty simple layouts - 21.04 hr back. (1)
  3. simple layouts with no top 8 - 42.48 hr back. (1)
  4. multiply layouts - 42.84 hr back. (1)
  5. simple layouts - 10.15 hr back. (3)
Similar Topics

Keywords : layouts

  1. Web Page Layouts - using Cascading Style Sheets (1)
  2. Nice Clean Php Layout Coding. - Learn a nice neat way to code your layouts with php (7)
    There are basically two main ways to code your php. Method 1) Creating a php document with an html
    look. The you throw in include tags all over the place. Its unorganized, and you have lots of stray
    files hidden in folders and scattered in your base directory. Its difficult to organize, and you
    make mistakes easily. Example: This document would be called index.php Whatever
    Banner or something Some content here. Mostly along the lines of You might ask what
    the problem was? Well, those include tags tend to multiply, and so do all those unne...
  3. How To Make Bubble Shaped Layouts - (8)
    1. Open your layout and make a new document, the same size of your layout. If you don't know
    what size it is, click your layout and go to Image >> Canvas Size. It should show you the Dimensions
    like this: 2. Where it says Current width and height make your new document the same pixels it
    says. Then cancel the Canvas Size. After that, click the Brushes tool and go to your color palette
    and choose Pattern. Say this was my layout: 3. Double click the pattern icon in the color
    palette. Find your layout and click on it. After that find the Tool Options and s...



Looking for simple, layouts

Searching Video's for simple, layouts
advertisement



Simple Layouts



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE