Align banner in the first post to the right

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tomzl
    Senior Member
    • Nov 2005
    • 100

    Align banner in the first post to the right

    I tried to align the banner in the first post to the right by using the ad_showthread_firstpost_start template.

    I entered the code:
    Code:
    <div style="float: right; margin: 0 0 5px 5px;">
    <a href="URL" target="_blank"><img src="URL" border="0"></a>
    </div>
    This works fine with regular text but breaks when the first post is a quote (see the picture below).

    Unlimited space to host images, easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.


    How do I align the ad to the right so that the quoted text will be displayed on the left side of the banner and not below?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Try this:

    Code:
    <img [color=red]align="right"[/color] src="URL" border="0">
    I have used this before. It has a similar effect to a float.

    Comment

    • Tomzl
      Senior Member
      • Nov 2005
      • 100

      #3
      It gives almost the same effect as my code. When the first post is a quote, it still won't disaplay the quote on the left side of the image but below it. Any other ideas?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Sorry I am out of ideas. You will have to play with the code until it works the way you want.

        FYI, here is the quote code:

        Admin CP -> Styles & Templates -> Style Manager -> « » -> BB Code Layout Templates -> bbcode_quote

        Comment

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