Page 1 of 1

Aligning?

Posted: Sun Mar 28, 2004 12:02 am
by Zorth
This may sound dumb but...

How would you align something not in the center, but sort of between the center and the left side of the page? Tables don't really seem to be a big help here, and I see no other way really than putting a ton of " "s.

Posted: Sun Mar 28, 2004 1:19 am
by Bill H
Try using a table with the margins set as needed.

Posted: Sun Mar 28, 2004 1:35 am
by m3mn0n
A table inside of a table..

<div> and it's exact positioning

there is a multitude of ways...

Posted: Sun Mar 28, 2004 7:59 am
by no_memories
This is just one of many ways to accomplish what you described.

Style:

Code: Select all

.leftcenter &#123;
position: relative; /* its better to use the relative attribute for this purpose */
top: 10%; /* this can be in a px value also */
left: 10%; /* same as above */
&#125;
Markup:

Code: Select all

<table border="" cellspacing="" cellpadding="" summary="">
<tr><td>

<div class="leftcenter">This or That</div>

</td></tr>

<tr><td>

<div class="leftcenter">This or That</div>

</td></tr>
</table>