Forums

[resolved] Advertisement pushes down texts when viewed in internet explorer (14 posts)

  1. dymas
    Member
    Posted 5 years ago #

    Hi

    I posted the same earlier but it did not seem to register.
    How to make google and amazon advertisement to appear the way we want it? I am Andreas09 theme. When I view the site firefox, the page look fine, but when viewed using internet explorer, the texts will be pushed down by the advertisement (in javascript), instead of wrapping around it. This makes the page too long and a lot of empty spaces.

    I appreciate any help.

    Thank you

  2. dymas
    Member
    Posted 5 years ago #

    I'd just like to correct my post above. I am not Andreas09. It should read: "I am using Andreas09 theme", and : " When I view the site using Firefox.."

    Thanks

  3. ghanshyamgadhiya
    Member
    Posted 5 years ago #

    can i see your site ?

  4. dymas
    Member
    Posted 5 years ago #

    Here is one of the pages my site sample

    Looking forward to your suggestion

    Thank you

  5. Root
    Member
    Posted 5 years ago #

    There is 5px of padding hardcoded into the Google div. Take it out or adjust the container width.

  6. dymas
    Member
    Posted 5 years ago #

    Hi Root,
    I've just removed the padding but it doesn't seem to have any effect. Is the 'container width' you mentioned here referring to the padding? Sorry, but I am a complete rookie.

  7. revenuerocker
    Member
    Posted 5 years ago #

    When I put banner ads into posts, the same thing happens. The banners look fine in FireFox, but in reality, are too wide for the coding to make it work correctly in IE. And thus, the ads on the right sidebar are pushed down, just as you describe.

    Make sure any code you add to the posts fits withing the posting cell's parameters.

    If you're using ads or banners from an affiliate company or Amazon, etc. see if you can find creatives that are narrower, preferably 360 px or less.

    At least this works for me.

  8. dymas
    Member
    Posted 5 years ago #

    Hi revenuerocker,
    If I've got you right,then it doesn't work for me. The banner in my sit sample is only 120x240 which is far too narrower than the post page itself.

  9. ghanshyamgadhiya
    Member
    Posted 5 years ago #

    just put your text content in this div

    <div style="float:right;">
    <p>When I first saw our baby.......doctor.</p></div>

    it will solve your problem in IE but create problem in firefox. i dont have your other coding information. so i m able to do just this. try out other style tag with this div you may get success.

  10. revenuerocker
    Member
    Posted 5 years ago #

    Dymas:

    Right, but you also have text inline with it. Even though the text is wrapping, it may be 'pushing' the ad box too wide.

    Try placing the ad box in an area where there is no text and see if that fixes it. Then you'll at least know that's the problem. You can then get different code to place in your ad...maybe a horizontal box above the text.

  11. dymas
    Member
    Posted 5 years ago #

    Thanks Ghanshyamgadh,
    It really help with IE but problem on Firefox, but at least I learn something else on your code. But I need it to work for both browsers. Only if I know what 'other coding' you refer to.

    Revenuerocker, you are right. Unless I finally get this resolved, I will have to limit myself to use horizontal banner (no vertical and square banner.. sob..).
    Thanks

  12. ghanshyamgadhiya
    Member
    Posted 5 years ago #

    I think this must work.

    just put this code

    <?php
    $br = strtolower($_SERVER['HTTP_USER_AGENT']); // what browser they use.

    if(ereg("msie", $br)) {
    echo "<div style='float:right;'>";
    } else {
    echo "<div>";
    }
    ?>

    so when your site is open in IE than and only than div move to right side. other wise in firefox it just do nothing.
    I have checked, this browser detection script is worked. but if dont , you can easily find other script from net. just check this condition and put your div.

    Now you can use "vertical and square banner" :)

  13. dymas
    Member
    Posted 5 years ago #

    Ghanshyamgadh,
    Before I saw your latest post, I managed to solve it by experimenting with different themes.

    Thank you for bothering to help.

  14. ghanshyamgadhiya
    Member
    Posted 5 years ago #

    ok, you are always welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic