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)
BTW: this tutorial took awhile to write out, so comments are appreciated and let me know if it helped you at all, good luck!
this helps alot, thank you =)
how do i put my layout up here? i coded it and everything.
you just paste the code into your files on your site(:
this is amaziingg!! affie for affie anyone? myspace.com/sock_layouts add me!!
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 :)
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.
good tutorial (:
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.
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. :/
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
tagged with
published by
hautelyts on october 17th
viewed
1331 times
comments
Sponsored links
Related
How to setup your very own Gravatar
How to change permissions of a file or folder
How to login to phpMyAdmin on Yakkel
How to make a new directory or folder in FileZilla
How to put your profile on private
How to make a new file in FileZilla
How to redirect a domain with htaccess
How to use jQuery plugin jGrowl
THANK YOU!