• Resolved cardealpt

    (@cardealpt)


    I want to have a banner that stays side to side to the main content and visible all the times. I think it’s called fixed banner. I’ve tried some tips that i found online but nothing works. When i change my position from absolute to fixed the banner disappears.

    This is my code atm:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <div class="banner" style="
    position: absolute;
    top: 100px;
    right: -250px;
    padding: 0px;
    ">
    <a href="http://www.kinguin.net/skins?r=11211#/" rel="nofollow"><img src="https://csgobook.com/wp-content/uploads/kinguinskins160x600_skins.jpg"/></a>
    </div>

    My page is:
    https://csgobook.com/cs-go-betting-sites/

    https://wordpress.org/plugins/ad-inserter/

Viewing 1 replies (of 1 total)
  • Plugin Author Spacetime

    (@spacetime)

    I believe this has nothing to do with the plugin.

    The banner is always where you put it with the CSS code.

    If you use fixed position then the banner is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled.
    Of course, right position -250px means out of view.

    Have you tried 0px?

Viewing 1 replies (of 1 total)
  • The topic ‘Fixed Banner’ is closed to new replies.