Forum Moderators: not2easy

Message Too Old, No Replies

Absoulute Positioning

Can anyone Help me with absoulute postitioning?

         

Lexi

2:32 pm on Nov 2, 2003 (gmt 0)



Is anyone willing to explain absoulute positioning to me? I want to learn to make i-tables but I don't know how to to the absoulute positioning part.

XMLMania

5:10 pm on Nov 2, 2003 (gmt 0)

10+ Year Member



By using CSS:

.myTable {
position: absolute;
left: 45px;
top: 50px
}

HTML:

<table class="myTable">
<tr>
<td>...Your text...</td>
</tr>
</table>

The above table would be positioned 45 pixels from the left of the browsers window, and 50 pixels from the top.

Alternatively you can change "left" to "right" so that you can change the positioning absolutely but from the right instead.

I personally usually use the DIV element as a container.

TGecho

5:28 pm on Nov 2, 2003 (gmt 0)