|
Important Attention all site visitors! Please remember that we are a free linkware site! Do not pay scammers for what we want to give you for free. |
||||||||||||||||||||||||||||
|
How To Code A Shop Blog
Introduction
So you want to learn how to code your own shop blog. In this tutorial, we'll be demonstrating how to code your shop blog using HTML tables.
But, first off, you're going to need somewhere to save your code.
You can use Notepad, Frontpage, Dream Weaver or your website's online editor (if you have one). We're going to be using notepad.
Secondly, you're going to need your blog image. We'll be using this image:![]() Ready? Let's begin the tutorial. Step 1
The first thing you should do is is decide how you're going to divide up your image.
You need to divide it up because we're using a table and in order to code for the text area, you have to code the areas surrounding it as well.
For now, this is how we're dividing our image:![]() Please note the following about the borders for our example: The border above area 2, 3 and 4 and below area 1 are part of area 1. The border below area 2, 3 and 4 and above area 5 are part of area 5. The border between area 2 and 3 are part of area 2. The border between area 3 and 4 are part of area 4. This means that NONE of the borders fall within area 3 which is our text area. Step 2
Now that we've divided up the areas, we're almost ready to start coding.
However, you will need the dimensions of each area (width x height) in pixels. You can choose to figure this out before or during your coding, it doesn't really matter.
Here are the dimensions for our areas:![]() Step 3
Ok, let's start the coding. First off you will need to put in the start and end table tags.
For our shop blog, we want to specify:
<table width="300" height="200" cellspacing="0" cellpadding="0" border="0" background="http://linktoimage/image.gif"> </table> You will need to replace:
Step 4
Now, we will be coding the individual areas. Something you need to understand now is that tables work in rows and columns.
Horizontal = rows. Vertical = columns. Here is our image with the row numbers and column numbers to help you understand.![]() When creating a table, we read from top to bottom from left to right. This means that when we code our example, we will code area 1 because it's at the top, then area 2 because it's on the next line and the one on the very left, then area 3 because it follows area 2 etc. This is why we needed to define the areas to start with, each area is a td - /td. First off, we will code area 1. Here is the information we will need for it.
<tr> <td width="300" height="65" colspan="3"></td> </tr> Now for area 2. Area 2's information:
<tr> <td width="83" height="99"></td> Area 3's information:
<td width="198" height="99"></td> Area 4's information:
<td width="19" height="99"></td> </tr> Area 5's information:
<tr> <td width="300" height="36" colspan="3"></td> </tr> Step 5
Now that we have coded the individual areas, it's time to put them together in the table so our code becomes:<table width="300" height="200" cellspacing="0" cellpadding="0" border="0" background="http://linktoimage/image.gif"> <tr> <td width="300" height="65" colspan="3"></td> </tr> <tr> <td width="83" height="99"></td> <td width="198" height="99"></td> <td width="19" height="99"></td> </tr> <tr> <td width="300" height="36" colspan="3"></td> </tr> </table> This is all that's needed to put the blog image in the right place awaiting your text. Step 6
Now you need just one more code to complete your shop blog. This code is to:
<div style="width: 198px; height: 99px; overflow: auto"> Your blog text goes here. </div> Step 7
Your blog is practically complete. Just put your code from step 6 into the final table from step 5 like this:<table width="300" height="200" cellspacing="0" cellpadding="0" border="0" background="http://linktoimage/image.gif"> <tr> <td width="300" height="65" colspan="3"></td> </tr> <tr> <td width="83" height="99"></td> <td width="198" height="99"><div style="width: 198px; height: 99px; overflow: auto"> Your blog text goes here. </div></td> <td width="19" height="99"></td> </tr> <tr> <td width="300" height="36" colspan="3"></td> </tr> </table> Important: Make sure you put it into the area which corresponds to your blog image's text area. You've Completed The Tutorial
|
|
||||||||||||||||||||||||||
|
© Copyright Temiko.net 2009-2010 | Terms and Conditions Neopets © Copyright 2000-2010 Neopets, Inc. All Rights Reserved. Used With Permission All copyrighted content is property of it's respective owners. All rights reserved. |
||||||||||||||||||||||||||||