PDA

View Full Version : Aligning table to the right?


medicalforums
08-06-2009, 02:35 AM
I am having a Google Search box instead of the built-in search

So I created a table right after the <!-- / breadcrumb, login, pm info --> in the navbar template and placed the code in it

Here's the code segment and what I added in red

</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->


<table>
<tr>
<td align="right">

<!--- Google Search Box Code --->

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


<!-- nav buttons bar -->
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">

What I ever I do the search box still appears to the left!
How do I bring it to the right side?

Brother Malachi
08-06-2009, 02:48 AM
Try using div tags
<div style="float:right; width:200px">

</div>You must include a width tho!

Btw, alight="right" should work tho. Link me to your board.

medicalforums
08-06-2009, 03:43 AM
Try using div tags
<div style="float:right; width:200px">

</div>You must include a width tho!

Btw, alight="right" should work tho. Link me to your board.

Nope, that didn't work either

1Unreal
08-06-2009, 04:03 AM
<table style="float: right;">
<tr>
<td align="right">

<!--- Google Search Box Code --->

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

medicalforums
08-06-2009, 04:37 AM
<table style="float: right;">
<tr>
<td align="right">

<!--- Google Search Box Code --->

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

Thanks, your code worked in IE and Firefox
But it appeared awkward in Google Chrome!