how to create HTML layouts : virtualinfocom

HTML layout is very basic. Not many options exist with the body tag alone. 
Tables on the other hand are the bread and butter of HTML layouts. Any element 
may be placed inside of a table including tables themselves.
<div class="codewrap"><h2 class="specialT">HTML Code:h2><pre class="code">&lt;table id="shell" bgcolor="black" border="1" heigh="200" width="300"&gt;
&lt;tr&gt;&lt;td&gt;
&lt;table id="inner" bgcolor="white" heigh="100" width="100"&gt;
&lt;tr&gt;&lt;td&gt;Tables inside tables!&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
pre>div>
<h2 class="specialT">Tables inside tables:h2><div class="display">
<table id="shell" heigh="200" width="300" bgcolor="black" border="1"><tbody><tr><td>
<table id="inner" heigh="100" width="100" bgcolor="white">
<tbody><tr><td>Tables inside tables!td>tr>
tbody>table>
td>tr>tbody>table>
div>
<p>The white table (identified as inner) exists inside of the (shell) table, the black one. A light bulb should be going off inside of your head as you explore how this system will allow for the creation of limitless layouts.p>
<h1>HTML - Standard Layouth1>
<p>A fairly standard layout consists of a banner near the top, navigation, and your content or display box. These are the backbone to any great website.p>
<div class="codewrap"><h2 class="specialT">HTML Code:h2><pre class="code">&lt;table cellspacing="1" cellpadding="0" border="0"
 bgcolor="black" id="shell" height="250" width="400"&gt;
&lt;tr height="50"&gt;&lt;td colspan="2" bgcolor="white"&gt;
&lt;table title="Banner" id="banner" border="0"&gt;
&lt;tr&gt;&lt;td&gt;Place a banner here&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr height="200"&gt;&lt;td bgcolor="white"&gt;
&lt;table id="navigation" title="Navigation" border="0"&gt;
&lt;tr&gt;&lt;td&gt;Links!&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Links!&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Links!&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;td bgcolor="white"&gt;
&lt;table title="Content" id="content" border="0"&gt;
&lt;tr&gt;&lt;td&gt;Content goes here&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
pre>div>
<h2 class="specialT">Basic Layout:h2><div class="display">
<table id="shell" width="400" bgcolor="black" border="0" cellpadding="0" cellspacing="1" height="250">
<tbody><tr height="50"><td colspan="2" bgcolor="white">
<table title="Banner" id="banner" border="0">
<tbody><tr><td>Place a banner heretd>tr>
tbody>table>
td>tr> <tr height="200"><td bgcolor="white">
<table id="navigation" title="Navigation" border="0">
<tbody><tr><td>Links!td>tr>
<tr><td>Links!td>tr>
<tr><td>Links!td>tr>
tbody>table>
td><td bgcolor="white">
<table title="Content" id="content" border="0">
<tbody><tr><td>Content goes heretd>tr>
tbody>table>
td>tr>tbody>table>
div>

<p>This approach is basic yet organized. Often times websites become too complex for the viewer to follow. The code becomes complex rather fast, you will need to be sure to properly assign height and width values to your tables as well. The more specific you are about heights and widths, the less debugging you will have to perform.p>
<div class="codewrap"><h2 class="specialT">HTML Code:h2><pre class="code">&lt;table id="shell" title="Shell" height="250" width="400"
 border="0" bgcolor="black" cellspacing="1" cellpadding="0"&gt;
&lt;tr height="50"&gt;&lt;td bgcolor="white"&gt;
&lt;table title="banner" id="banner"&gt;
&lt;tr&gt;&lt;td&gt;Banner goes here&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr height="25"&gt;&lt;td bgcolor="white"&gt;
&lt;table title="Navigation" id="navigation"&gt;
&lt;tr&gt;&lt;td&gt;Links!&lt;/td&gt;
&lt;td&gt;Links!&lt;/td&gt;
&lt;td&gt;Links!&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor="white"&gt;
&lt;table title="Content" id="content"&gt;
&lt;tr&gt;&lt;td&gt;Content goes here&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
pre>div>
<h2 class="specialT">Basic Layout 2:h2><div class="display">
<table id="shell" title="Shell" width="400" bgcolor="black" border="0" cellpadding="0" cellspacing="1" height="250">
<tbody><tr height="50"><td bgcolor="white">
 <table title="banner" id="banner">
 <tbody><tr><td>Banner goes heretd>tr>
 tbody>table>
td>tr>
<tr height="25"><td bgcolor="white">
 <table title="Navigation" id="navigation">
 <tbody><tr><td>Links!td><td>Links!td><td>Links!td>tr>
 tbody>table>
td>tr>
<tr><td bgcolor="white">
 <table title="Content" id="content">
 <tbody><tr><td>Content goes heretd>tr>
 tbody>table>
td>tr>tbody>table>
div>
<p>The code is quite a lot to look at, break it up and organize it in your own way to make things easier for you.p> 

Comments

Popular Posts