vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need help with floating! (https://vborg.vbsupport.ru/showthread.php?t=248273)

MarkFoster 08-09-2010 05:20 PM

Need help with floating!
 
1 Attachment(s)
I want to float:

Code:

        <!-- login and pm info -->
        <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="75%" align="center">
        <tr>
        <if condition="$show['member']">
            <td nowrap="nowrap">
            <div class="lightsmallfont">
                <strong><phrase 1="$bbuserinfo[username]" 2="http://rarewarecentral.com/forums/member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
                <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
       
                <if condition="$show['notifications'] AND $show['popups']">
                    <div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
                    <script type="text/javascript"> vBmenu.register("notifications"); </script>
                <else /><if condition="$show['pmstats']">
                    <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
                </if></if>
       
                <if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
            </div>
            </td>
        <else />
            <td nowrap="nowrap" style="padding:0px">
                <!-- login form -->
                <form action="http://rarewarecentral.com/forums/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                    <td class="lightsmallfont" style="white-space: nowrap;"><label for="navbar_username">$vbphrase[username]</label></td>
                    <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                    <td class="lightsmallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Save?</label></td>
                </tr>
                <tr>
                    <td class="lightsmallfont"><label for="navbar_password">$vbphrase[password]</label></td>
                    <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
                    <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                <input type="hidden" name="do" value="login" />
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
            </td>
        </if>
        </tr>
        </table>
        <!-- / login and pm info -->      </td>

On the light blue block seen on the body image in the style Ive added. Can anybody either change the .xml file for me or look at it and give me a code for the floating part? (It doesn't matter if it goes a bit outside the box, I'll handle the rest after that).

Lynne 08-09-2010 09:32 PM

How about a link to see the style in action and then an image of what you want it to look like.

MarkFoster 08-10-2010 04:20 AM

Quote:

Originally Posted by Lynne (Post 2081516)
How about a link to see the style in action and then an image of what you want it to look like.

Very well: http://rarewarecentral.com/forums/index.php?styleid=112
I want the code I posted in the empty blue square on the right of the body background seen on the style.

Lynne 08-10-2010 04:37 AM

You'll have to do something like this:
HTML Code:

<div id="container">
<div style="float:right; position:relative; top:40px; right:-50px">
login code
</div>
<div align="center">
<ul id="navbar">
navbar links
</ul>
</div>
</div>

You'll have to play with it a bit because the text doesn't fix in that box the way it is now.

MarkFoster 08-10-2010 04:45 AM

Quote:

Originally Posted by Lynne (Post 2081607)
You'll have to do something like this:
HTML Code:

<div id="container">
<div style="float:right; position:relative; top:40px; right:-50px">
login code
</div>
<div align="center">
<ul id="navbar">
navbar links
</ul>
</div>
</div>

You'll have to play with it a bit because the text doesn't fix in that box the way it is now.

Thank you, it works great.


All times are GMT. The time now is 04:29 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.00996 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)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