1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adjusting Banner In Sidebar

Discussion in 'Styling and Customization Questions' started by TheBigK, Nov 29, 2011.

  1. TheBigK

    TheBigK Well-Known Member

    We've a banner with width 250 px which the advertiser wants to show in the sidebar. I therefore created an extra sidebar block with following code: -

    <div class="section">
        <div class="secondaryContent">
    And added following code above {xen:raw $sidebar} in PAGE_CONTAINER

    <xen:include template="name_of_your_custom_template" />
    As a result of this, the banner appears as follows -


    Note that the banner breaks through the sidebar left boundary by a few pixels. This is because both banners and sidebar are of the same width: 250 pixels. I'm wondering whether any CSS magic can make the banner appear right within the sidebar.

    I think this can be achieved by eliminating just the margin/padding on the left & right side of the banner only for the additional block. Can someone help?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Remove the secondaryContent div.
    TheBigK likes this.
  3. TheBigK

    TheBigK Well-Known Member

    Worked! I hate it when things are so simple :cautious:

Share This Page