F
Fahad
Guest
How would I align a table to the right of the page?
This one has me stumped, so if anyone can help me, I'll pay!
Thank you all!
This one has me stumped, so if anyone can help me, I'll pay!
Thank you all!
How would I align a table to the right of the page?
This one has me stumped, so if anyone can help me, I'll pay!
Thank you all!
<div align="right"><TABLE WIDTH="150px" HEIGHT="100%" CELLPADDING=0 style="position: absolute; top: 150px;">
<TR><TD WIDTH=1 BGCOLOR="black">
<SPACER TYPE="block" WIDTH=1></TD>
<TD>
<a href="http://www.spreadfirefox.com/?q=affiliates&id=176003&t=215"><img alt="Firefox 2" title="Firefox 2" src="http://sfx-images.mozilla.org/affiliates/Buttons/firefox2/firefox-spread-btn-4.png" border="0"></a>
</TD></TR>
</TABLE></div>
<div id="Aligner">
</div>
#Aligner {
width: 100%;
height: 100%;
text-align:right;
}
<div id="Aligner" style="width:100%; height:100%; text-align: right;">
</div>
Its simple but just work in IE because it is a non-standard browser.Enclose the table inside this code.
<div align="right"></div>
Its so simple.
If you need further clarification, post the jist of the intended code which you want to right align.
Thank you,
All the best
display:table-cell; vertical-align:top;
<div style="float:right">
This text is floated to the right.
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td>
This table is floated to the right.
</td>
</tr>
</table>
</div>
<div class="aligner">
This text is floated to the right.
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td>
This table is floated to the right.
</td>
</tr>
</table>
</div>
.aligner {
float:right;
}
margin-left:auto;