Click here to Skip to main content
14,668,470 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am working in a project in which i need to arrange controls by defined position in a repeatable control.

I use table as a repeatable control but when I set position of a cell relative and set all children positions absolute then the cell doesn't get width and height.

I have tested this:
<table border="1" style="position:absolute;right:10px;top:20px">
        <td style="position:relative;"><div style="background-color:Red;width:100px;height:40px;position:absolute;top:0;right:0"></div></td>
        <td style="position:relative"><div style="background-color:blue;width:100px;height:40px;position:absolute;top:0;right:0"></div></td>


I need, each control appears in each cell.
Updated 27-Jul-10 20:22pm
koool.kabeer 28-Jul-10 4:17am
try by setting the width of 'table' element.... since it is the parent so you must first set the width of parent element.... then check

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

It's better to use div's than tables.

Check this[^] for more on div's.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100