Announcement

Collapse
No announcement yet.

Help with code. Site looks different on cell phone then desktop

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Help with code. Site looks different on cell phone then desktop

    I have 2 google ads running under my navbar in a custom box. Viewing them on my desktop everything is lined up. Viewing it from a smartphone the ads appear on top of each other instead of side to side. Can anyone offer some help with this current code. Thank you.


    <div id="test" class="block collapse">
    <h2 class="blockhead">
    <span> Google Ads</span>
    <a class="collapse" id="collapse_cel_dummy" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_cel_dummy_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
    </h2>
    <div class="blockrow" id="cel_dummy">

    <div class="adblock" id="adblock_container_left">
    <script type="text/javascript"><!--
    google_ad_client = "pub-";
    /* 300x250, created 11/22/08 */
    google_ad_slot = "";
    google_ad_width = 300;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    <script type="text/javascript"><!--
    google_ad_client = "pub-";
    /* 300x250, created 11/22/08 */
    google_ad_slot = "";
    google_ad_width = 300;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    </div>
    </div>
    <br />
    </vb:if>

  • #2
    The advertising is supposed to float to fit into the available screensize. Since the cellphone has a smaller screen your ads show vertically instead of horizontally. This is how HTML is supposed to work.

    To control format on the smaller screen, you would need a specific mobile style. One is currently under development.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment

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