English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ive created a table layout for my page that is 800 pixels wide and center aligned. Now, within those table cells i want to add layers so i can insert images with forms on top of them. But, when i insert a layer into a cell, it doesnt "nest" inside the table cell, so to speak. The layer stays aligned to its own coordinates, so when i preview my page in the browser, the layer is left aligned while the rest of the page is center aligned. How can i insert a layer into a cell and have it snap into place and move with the table?

2006-11-20 06:11:22 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Table should never be used for layout control.
Tables are for tabular data.

Create your layout using "divs"

ie


content


etc

Defined your div in your CSS
#layout {
position: relative;
text-align: left;
width: 800px;
background-color: #DEDEDE;
margin-top: 0px;
margin-right: auto;
margin-left: auto;
padding-bottom: 20px;
}

The above will center your layer on any monitor resolution.

Then work from there, using layers/divs

This site provides great examples to learn from:
http://www.csszengarden.com/

2006-11-20 06:18:22 · answer #1 · answered by arus.geo 7 · 0 0

fedest.com, questions and answers