$forumjump

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bubble #5
    Senior Member
    • Apr 2005
    • 357
    • 4.2.X

    $forumjump

    What is the best way to center the $forumjump menu in our styles? It seems to only want to go align left or align right...

    Thanks.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    The forumjump itself is aligned left in the default style. You might need to change that:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> forumjump

    Code:
    <div class="smallfont" style="[color=red]text-align:$stylevar[left];[/color] white-space:nowrap">
    	<form action="forumdisplay.php" method="get">
    	<input type="hidden" name="s" value="$session[sessionhash]" />
    	<input type="hidden" name="daysprune" value="$daysprune" />
    	<strong>$vbphrase[forum_jump]</strong><br />
    	<select name="f" onchange="this.form.submit();">
    		<optgroup label="$vbphrase[site_areas]">
    			<option value="cp" $frmjmpsel[usercp]>$vbphrase[user_control_panel]</option>
    			<option value="pm" $frmjmpsel[pm]>$vbphrase[private_messages]</option>
    			<option value="subs" $frmjmpsel[subs]>$vbphrase[subscriptions]</option>
    			<option value="wol" $frmjmpsel[wol]>$vbphrase[whos_online]</option>
    			<option value="search" $frmjmpsel[search]>$vbphrase[search_forums]</option>
    			<option value="home" $frmjmpsel[home]>$vbphrase[forums_home]</option>
    		</optgroup>
    		<optgroup label="$vbphrase[forums]">
    		$jumpforumbits
    		</optgroup>
    	</select>$gobutton
    	</form>
    </div>

    Comment

    • Bubble #5
      Senior Member
      • Apr 2005
      • 357
      • 4.2.X

      #3
      Thanks for pointing that out to us Jake However isn't that just for the text? We need to center the entire drop down menu. Can we just wrap that code in center tags, or would that mess something else up?

      Comment

      • feldon23
        Senior Member
        • Nov 2001
        • 11291
        • 3.7.x

        #4
        Well, <center></center> tags are a dinosaur. Maybe <div align="center"> </div> ?

        Comment

        • Bubble #5
          Senior Member
          • Apr 2005
          • 357
          • 4.2.X

          #5
          Hi feldon23. I tried both center tags and <div align="center"> but neither one worked. I doesn't seem to budge at all

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Originally posted by Bubble #5
            Thanks for pointing that out to us Jake However isn't that just for the text? We need to center the entire drop down menu. Can we just wrap that code in center tags, or would that mess something else up?
            It is for the entire menu.

            Comment

            • Bubble #5
              Senior Member
              • Apr 2005
              • 357
              • 4.2.X

              #7
              We tried changing it to read:

              HTML Code:
              style="text-align:$stylevar[center];
              But it did nothing. We also tried Div align="center" and that did nothing too. What are we doing wrong?

              Comment

              • Jake Bunce
                Senior Member
                • Dec 2000
                • 46598
                • 3.6.x

                #8
                Can you post a link to a page where you are trying to center the forumjump menu?

                Comment

                • Bubble #5
                  Senior Member
                  • Apr 2005
                  • 357
                  • 4.2.X

                  #9
                  Here ya go...

                  Clickity-Click
                  Last edited by Bubble #5; Fri 25 Nov '05, 5:27pm.

                  Comment

                  • Jake Bunce
                    Senior Member
                    • Dec 2000
                    • 46598
                    • 3.6.x

                    #10
                    From your page source:

                    Code:
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                    	[color=red]<td width="100%">&nbsp;</td>[/color]
                    	<td align=""><div align="center" class="smallfont" style="text-align:; white-space:nowrap">
                    	<form action="forumdisplay.php" method="get">
                    	<input type="hidden" name="s" value="" />
                    	<input type="hidden" name="daysprune" value="" />
                    
                    	<strong>Forum Jump</strong><br />
                    	<select name="f" onchange="this.form.submit();">
                    		<optgroup label="Site Areas">
                    			<option value="cp" class="fjsel" selected="selected">User Control Panel</option>
                    			<option value="pm" >Private Messages</option>
                    			<option value="subs" >Subscriptions</option>
                    			<option value="wol" >Who's Online</option>
                    
                    			<option value="search" >Search I.N.I.</option>
                    			<option value="home" >Forums Home</option>
                    		</optgroup>
                    That table cell is expanding to fill 100% of the horrizontal space, minus the width of the forum jump menu. Remove it.

                    Comment

                    • Bubble #5
                      Senior Member
                      • Apr 2005
                      • 357
                      • 4.2.X

                      #11
                      THANK YOU very much for your help Jake! I really appreciate it

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...