Home arrow HTML arrow Page 2 - Completing Temporary Web Page Processing
HTML

Completing Temporary Web Page Processing


This is the second and last part of my series on temporary web page processing. In this part of the series, I talk about the layout of the panel (Form). If the panel becomes large, with many elements, then you need to give its layout some consideration. Before I start that I will first talk about a second method of removing the Panel.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
April 22, 2009
TABLE OF CONTENTS:
  1. · Completing Temporary Web Page Processing
  2. · Panel Layout
  3. · Elements to Use in the Table Cells
  4. · Spaces Within the Cell

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Completing Temporary Web Page Processing - Panel Layout
(Page 2 of 4 )

The panel (HTML Form) that we have seen so far has very few elements. It is simple. When you need more elements and a broader Form, you need to give consideration to the layout. The layout I want use for the analysis has the components for the Form in the middle of the panel. It can have some text or images on the left, and it can also have some text or images on the right.

So there are three sections. The section on the left has some text or images. The section in the middle has the Form elements. The section on the right has some text or images. The panel element is still the Form.

I have made the Form broader. I have given the Form a width of 900px. In order to have the three sections, I have used an HTML Table of one row and three cells. The cells are for the three sections. This is the table and its contents:


<table>

<tbody>

<tr>

<td width="250">

Some Text or image go here - left. <br />

<span style="background-color:chocolate; font-weight:bold">A dummy SPAN Element</span>

</td>

<td width="250">

Label 1 <input id="I1" type="text"><br />

Label 2 <input id="I2" type="text">

</td>

<td width="250">

Some Text or image go here - right. <br />

</span><span style="background-color:chocolate; font-weight:bold">A dummy SPAN Element</span>

</td>

</tr>

</tbody>

</table>


The width of the table is less than the width of the Form element. This is because tables have padding, borders and margins, and these values depend on the particular browser. Make sure you give the table cells definite widths to properly space out the sections.

If you want the table to be of the same size as the Form, then you have to give the table zero padding, zero border and zero margin; there should also be zero space between the cells, zero cell padding and zero cell borders. Remember, these values add to the overall size (width) of the table. These values are not necessarily the same for different browsers.

In the previous Form, the form elements were in an HTML Table. Here, the Form elements are in the middle cell in the above Table. I have put some dummy elements in the first cell and third cell.

This HTML Table goes into the position of the previous HTML Table.


blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials