Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-01-2016, 05:14 PM
MrHorror MrHorror is offline
 
Join Date: Nov 2010
Posts: 277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default A small issue with centering vb4 Portal

So we are currently doing the beginnings of some re-design work on our forum. We had no problem centering the forum itself to the middle of the page. By adding the proper values:

Style Variable Editor > doc_margin: LEFT:auto . Right:auto
Style Variable Editor > doc_width: 960 px

The portal (VBA CMPS) however was another story. We followed the same blueprint for the style that we are using for the Portal. But for some reason the portal remains stuck on the left side of the page. SEE BELOW. So we could use a little help here in how to get this right.

Reply With Quote
  #2  
Old 10-02-2016, 07:43 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can send the link to this page so we can know how to help you out.

I think it needs to be correct CSS code in this case.
Reply With Quote
  #3  
Old 10-02-2016, 12:24 PM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you try putting this in your additional.css and see if it works?

Code:
body {
    margin: 0 auto;
}
Reply With Quote
  #4  
Old 10-02-2016, 03:31 PM
MrHorror MrHorror is offline
 
Join Date: Nov 2010
Posts: 277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL View Post
Can you try putting this in your additional.css and see if it works?

Code:
body {
    margin: 0 auto;
}

I added the above into the additional.css template for my Portal Style. No dice, didn't work.

--------------- Added [DATE]1475429524[/DATE] at [TIME]1475429524[/TIME] ---------------

Quote:
Originally Posted by webmastersun View Post
You can send the link to this page so we can know how to help you out.

I think it needs to be correct CSS code in this case.
Hello. Here is the link to our portal. http://www.horrormoviesandstuffforum...ums/portal.php
Reply With Quote
  #5  
Old 10-02-2016, 04:10 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have error in ad_location_template fix/remove the code below and it should work.

Code:
	<div class="ad_global_header">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                        <title>Black Menu Tabs</title>
                        <style type="text/css">
<!--
    body {
        margin:0;
        padding:0;
        font: 11px/1.5em Verdana;
}
h2 {
        font:  17px Verdana, Arial, Helvetica, sans-serif;
        color: #000;
        margin: 0px;
        padding: 0px 0px 0px 15px;
}
    #tabsH {
      font-family: arial;
      font-size: 13px;
      float:left;
      width:100%;
      background:#000;
      font-size:93%;
      line-height:normal;
      }
    #tabsH ul {
        margin:0;
        padding:10px 10px 0 50px;
        list-style:none;
      }
    #tabsH li {
      display:inline;
      margin:0;
      padding:0;
      }
    #tabsH a {
      font-family: arial;
      font-size: 13px;
      float:left;
      background:url("/images2/misc/tableftH.gif") no-repeat left top;
      margin:0;
      padding:0 0 0 4px;
      text-decoration:none;
      }
    #tabsH a span {
      font-family: arial;
      font-size: 13px;
      float:left;
      display:block;
      background:url("/images2/misc/tabrightH.gif") no-repeat right top;
      padding:5px 15px 4px 6px;
      color:#cc0000;
      }
    /* Commented Backslash Hack hides rule from IE5-Mac \*/
    #tabsH a span {float:none;}
    /* End IE5-Mac hack */
    #tabsH a:hover span {
      color:#FFF;
      }
    #tabsH a:hover span { color:#ffffff;
      background-position:0% -42px;
      }
    #tabsH a:hover span {
      background-position:100% -42px;
      }
        #tabsH #current a {
                background-position:0% -42px;
        }
        #tabsH #current a span {
                background-position:100% -42px;
        }
-->
</style>
                </head>
                <body>
                        <div id="tabsH">
                                <ul>
     </ul>
                        </div>
	</div>
Reply With Quote
3 благодарности(ей) от:
Dragonsys, KevinL, MarkFL
  #6  
Old 10-02-2016, 06:22 PM
MrHorror MrHorror is offline
 
Join Date: Nov 2010
Posts: 277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seven Skins View Post
You have error in ad_location_template fix/remove the code below and it should work.

Code:
	<div class="ad_global_header">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                        <title>Black Menu Tabs</title>
                        <style type="text/css">
<!--
    body {
        margin:0;
        padding:0;
        font: 11px/1.5em Verdana;
}
h2 {
        font:  17px Verdana, Arial, Helvetica, sans-serif;
        color: #000;
        margin: 0px;
        padding: 0px 0px 0px 15px;
}
    #tabsH {
      font-family: arial;
      font-size: 13px;
      float:left;
      width:100%;
      background:#000;
      font-size:93%;
      line-height:normal;
      }
    #tabsH ul {
        margin:0;
        padding:10px 10px 0 50px;
        list-style:none;
      }
    #tabsH li {
      display:inline;
      margin:0;
      padding:0;
      }
    #tabsH a {
      font-family: arial;
      font-size: 13px;
      float:left;
      background:url("/images2/misc/tableftH.gif") no-repeat left top;
      margin:0;
      padding:0 0 0 4px;
      text-decoration:none;
      }
    #tabsH a span {
      font-family: arial;
      font-size: 13px;
      float:left;
      display:block;
      background:url("/images2/misc/tabrightH.gif") no-repeat right top;
      padding:5px 15px 4px 6px;
      color:#cc0000;
      }
    /* Commented Backslash Hack hides rule from IE5-Mac \*/
    #tabsH a span {float:none;}
    /* End IE5-Mac hack */
    #tabsH a:hover span {
      color:#FFF;
      }
    #tabsH a:hover span { color:#ffffff;
      background-position:0% -42px;
      }
    #tabsH a:hover span {
      background-position:100% -42px;
      }
        #tabsH #current a {
                background-position:0% -42px;
        }
        #tabsH #current a span {
                background-position:100% -42px;
        }
-->
</style>
                </head>
                <body>
                        <div id="tabsH">
                                <ul>
     </ul>
                        </div>
	</div>



:up: THIS WORKED! THANKS A LOT MAN!
Reply With Quote
2 благодарности(ей) от:
Dragonsys, MarkFL
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06967 seconds
  • Memory Usage 2,236KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (5)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete