First you need to create your web layout using Photoshop, Paint Shop Pro, Photofiltre, or whatever program you use to create things!

http://i36.tinypic.com/29glr21.png

^ That's mine.

Now to start you need to get your background code.
Copy and Paste this code first:

body {
background :#HEX COLOR url("BACKROUND URL") repeat-y;
}

for BACKGROUND URL, you need to crop the bottom part of your web layout and put the url to it here. for example here's mine:

http://i37.tinypic.com/15gpjl4.png

Where it says HEX COLOR, make sure to put the background color you want your layout to be, and don't erase the # part or firefox users won't see your background color.

Next your going to need the font code. Copy and Paste the following code:

td, p, body, a {
color : #000000;
font-family : arial;
font-size : 8pt;
text-align : center;
}
a:active, a:visited, a:link, a:hover {
font-size : 10px;
color : #000000;
font-family : arial;
font-weight : normal;
text-decoration : none;
}
a:link img {
border : none;
}
a:visited img {
border : none;
}
a:hover img {
border : none;
}

Edit that however you would like, be sure to use fonts like arial, arial black, times new roman, basic computer fonts, so everyone can see them.

Now for your headers, this code allows you to customize them however you like. Copy and Paste this code, and edit it as you wish.

.SIDEBAR {
font-family :FONT;
color : #COLOR;
background : #COLOR;
font-weight : normal;
font-size :50px;
line-height :40px;
letter-spacing : 3px;
text-align :right;
}
.CONTENT {
font-family :FONT;
color : #COLOR;
background : #COLOR;
font-weight : normal;
font-size :50px;
line-height :40px;
letter-spacing : 3px;
text-align :right;
}

This code allows you to change the bold,italic,underline, and textarea of your layout. Copy and paste this, then edit it was you wish.

b {
color : #ff3200;
}
u {
color : #00c6ff;
}
i {
color : #9a0063;
}
textarea, input {
width : 140px;
}

This is the coding part, basically the whole thing. You can leave the header part alone, the sidebar and content is basically all you need to edit, mess around with the postitions and stuff untill its right for you! Here's the code.

#header {position:absolute; left:0px; top: 0px;}
#sidebar {position:absolute; top:300px; left:480px; width:200px;}
#content {position:absolute; top:300px; left:20px; width:550px;}

Here's my finished product, i just did the basic, you can customize yours way more!
http://hautelyts.com/example.php

Credit to sourpopave.com for the original tutorial :)

Comments for this tutorial (12)

hautelyts on October 17th at 1:54am

BTW: this tutorial took awhile to write out, so comments are appreciated and let me know if it helped you at all, good luck!

fashionista on October 22nd at 9:32pm

this helps alot, thank you =&#41

radrant on October 25th at 6:33pm

how do i put my layout up here? i coded it and everything.

hautelyts on October 30th at 6:23pm

you just paste the code into your files on your site(:

acidpunch on November 4th at 2:07pm

this is amaziingg!! affie for affie anyone? myspace.com/sock_layouts add me!!

catalyzed on November 5th at 7:56pm

elpwhere do you put the url for the actual layout image? becuause i did the code, and it comes up blank. where does the image go? but this tutorial is very helpful though :)

clumsyycontests on November 16th at 6:02pm

Um. Lol. I'm new. You said where to past it. But how do you paste it in the files on your site? I'm majorly new. Ha. Thanks. This is really helpful.

amazed on November 26th at 4:27pm

good tutorial (:

confession on December 20th at 4:25pm

i have a layout and everything made for it, i posted it in the about me, but it looked wrong, when i tryed to take it out it wouldent let me. where excatley do you post it at? cause i cant find that place.

crystalic on December 22nd at 6:26pm

where do you put though? i've been looking for like two days but can't find where to paste my code so that my page looks like a webpage and not a blank one. :/

puree on December 28th at 11:25pm

THANK YOU!

Login or signup to comment!

Welcome!

Yakkel is your central source for web developer tutorials as well as a leading free web hosting provider.

500mb storage space
FTP access, unlimited email accounts, unlimited subdomains!

Host all your domains, for free!

learn more by taking a quick tour ›
learn about our free hosting ›
signup now ›

About this tutorial

If you are wondering how to code a web layout, check out this tutorial!

category

CSS

tagged with

layouts × 1
myspace × 3

published by

hautelyts on october 17th

viewed

1331 times

comments

12 comments

Sponsored links