vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Aligning table to the right? (https://vborg.vbsupport.ru/showthread.php?t=220291)

medicalforums 08-06-2009 02:35 AM

Aligning table to the right?
 
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

Code:

</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
Code:

<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

Quote:

Originally Posted by hammerhead24 (Post 1862311)
Try using div tags
Code:

<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

HTML Code:

<table style="float: right;">
<tr>
<td align="right">

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

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


medicalforums 08-06-2009 04:37 AM

Quote:

Originally Posted by 1Unreal (Post 1862334)
HTML Code:

<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!


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01206 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete