November 17th, 2003, 05:57 PM
There are several issues here.
First, there is no particular need to use any but default static positioning in the problem you described.
Relative positioning means the position may be offset from its normal position in the flow. Its normal position is "saved" and not closed up.
Absolute positioning means that offsets are taken from the edges of the container. The natural position is not saved, and is closed.
Sizing need not be metric eg. 20px or 10 ems, etc. It may be a fraction of its container's size, 35%, for example.
Tables are deprecated as a layout method. Write structural HTML, and let CSS define how the structure is displayed.
Having said all that, here is an example
of what you want. I have put the <div> in a cell, and it obeys the rules of <td>'s.
edit: damn typos!
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.
My html and css workshop
, demos and tutorials.
Ask a better question
, get a better answer.
Last edited by kk5st : November 17th, 2003 at 06:00 PM.