Help With Getting My Banner Center

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Diablo-Sat
    Senior Member
    • Dec 2010
    • 112
    • 3.6.x

    Help With Getting My Banner Center

    im using a ambient lighting skin but cant get my banner in the center

    Code:
    <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td>
        <div class="vbskin_wrapper_t">
        <div class="vbskin_wrapper_b">
        <div class="vbskin_wrapper_l">
        <div class="vbskin_wrapper_r">
        <div class="vbskin_wrapper_tl">
        <div class="vbskin_wrapper_tr">
        <div class="vbskin_wrapper_bl">
        <div class="vbskin_wrapper_br">
        
    <!-- header -->
    <div class="vbskin_header">
    <!-- logo -->
    <a name="top"></a>
    <a href="$vboptions[homeurl]"><img id="logo_image" src="$stylevar[titleimage]" border="0" alt="$vboptions[homeurl]" /></a>
    <if condition="$ad_location['ad_header_logo']"><div id="logo_banner">$ad_location[ad_header_logo]</div><else /><div id="logo_banner">&nbsp;</div></if>
    <!-- /logo -->
    
    <!-- date -->
    <p class="smallfont" id="vbskin_date">
    <script language="JavaScript" type="text/javascript">
    var days = new Array(8);
    days[1] = "Sunday";
    days[2] = "Monday";
    days[3] = "Tuesday";
    days[4] = "Wednesday";
    days[5] = "Thursday";
    days[6] = "Friday";
    days[7] = "Saturday";
    var months = new Array(13);
    months[1] = "January";
    months[2] = "February";
    months[3] = "March";
    months[4] = "April";
    months[5] = "May";
    months[6] = "June";
    months[7] = "July";
    months[8] = "August";
    months[9] = "September";
    months[10] = "October";
    months[11] = "November";
    months[12] = "December";
    var dateObj = new Date(document.lastModified)
    var wday = days[dateObj.getDay() + 1]
    var lmonth = months[dateObj.getMonth() + 1]
    var date = dateObj.getDate()
    var fyear =+ dateObj.getFullYear()
    document.write(wday + ", " + date + " " + lmonth + " " + fyear)
    </script>
    </p>
    <!-- /date -->
    
    </div>
    
    <!-- navigation -->
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td width="10"><img src="images/styles/ambient-lightingv2/images/menu_l.png" border="0" alt="menu_l" /></td>
        <td <if condition="THIS_SCRIPT=='adv_index'">class="vbskin_main_menu_home_selected"<else />class="vbskin_main_menu_home"</if>><a href="$vboptions[homeurl]">Home</a></td>
        <td <if condition="THIS_SCRIPT=='adv_index' OR THIS_SCRIPT=='calendar' OR THIS_SCRIPT=='group' OR THIS_SCRIPT=='album'">class="vbskin_main_menu_forum"<else />class="vbskin_main_menu_forum_selected"</if>><a href="$vboptions[forumhome].php$session[sessionurl_q]">Forum</a></td>
        <td <if condition="THIS_SCRIPT=='calendar'">class="vbskin_main_menu_calendar_selected"<else />class="vbskin_main_menu_calendar"</if>><a href="calendar.php$session[sessionurl_q]">Calendar</a></td>
        <td <if condition="THIS_SCRIPT=='group'">class="vbskin_main_menu_group_selected"<else />class="vbskin_main_menu_group"</if>><a href="group.php$session[sessionurl_q]">Groups</a></td>
        <td <if condition="THIS_SCRIPT=='album'">class="vbskin_main_menu_album_selected"<else />class="vbskin_main_menu_album"</if>><a href="album.php$session[sessionurl_q]">Albums</a></td>
        <td width="50"><img src="images/styles/ambient-lightingv2/images/menu_r.png" border="0" alt="menu_r" /></td>
        <td width="100%">&nbsp;</td>
    </tr>
    </table>
    <!-- /navigation -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    
    $ad_location[ad_header_end]
    
    <p>
    
    <center><script type="text/javascript">
    var bannersnack_embed = {"hash":"bcfgxle8x","width":728,"height":90,"t":1430918800,"userId":15990086,"bgcolor":"#3D3D3D","wmode":"opaque"};
    </script>
    <script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script></center>
  • Lats
    Senior Member
    • Mar 2002
    • 3671

    #2
    Try replacing those center tags with something like this...
    Code:
    <div style="margin: 0 auto;">
    ...
    your banner code
    ...
    </div>
    Lats...

    Comment

    • Diablo-Sat
      Senior Member
      • Dec 2010
      • 112
      • 3.6.x

      #3
      where about mate? the one at the top?

      Comment

      • Lats
        Senior Member
        • Mar 2002
        • 3671

        #4
        No, the center tags look like this...

        <center> and
        </center>

        At the bottom.
        Lats...

        Comment

        • Diablo-Sat
          Senior Member
          • Dec 2010
          • 112
          • 3.6.x

          #5
          is it allready in the code i posted above or do i have to add it at the bottom of the code

          Comment

          • Lats
            Senior Member
            • Mar 2002
            • 3671

            #6
            Ok, replace this snippet of code you posted...
            Code:
            ...
            <center><script type="text/javascript">
            var bannersnack_embed = {"hash":"bcfgxle8x","width":728,"height":90,"t":1430918800,"userId":15990086,"bgcolor":"#3D3D3D","wmode":"opaque"};
            </script>
            <script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script></center>
            with this...
            Code:
            ...
            <div style="margin: 0 auto;">
            <script type="text/javascript">
            var bannersnack_embed = {"hash":"bcfgxle8x","width":728,"height":90,"t":1430918800,"userId":15990086,"bgcolor":"#3D3D3D","wmode":"opaque"};
            </script>
            <script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>
            </div>
            Lats...

            Comment

            • Diablo-Sat
              Senior Member
              • Dec 2010
              • 112
              • 3.6.x

              #7
              sorry that code at the bottom is an ad banner i have on , thats not for my actual logo

              Comment

              • Lats
                Senior Member
                • Mar 2002
                • 3671

                #8
                Post a link to your site so we can check the css being used.
                Lats...

                Comment

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