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

Ad alignment in the message body

Discussion in 'XenForo Questions and Support' started by akhi_234, Dec 30, 2011.

  1. akhi_234

    akhi_234 Member


    i want to align my ads in the message body to the right but ad_message_body simply add the ads in the body without any such alignment. can somebody suggest what to do?

    Thanks & Regards
  2. Brogan

    Brogan XenForo Moderator Staff Member

    wrap them in a div using float:right.

    <div style="float: right">
    ad code
  3. Dodgeboard

    Dodgeboard Well-Known Member

    30 seconds to get an answer. Wow. Ninja Brogan.
  4. akhi_234

    akhi_234 Member

    now the ads are not displaying at all, i have simply put this;

    <xen:hook name="ad_message_body" />
    <div style="float: right>
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-xxxxxxxxx";
    /* homebuying message */
    google_ad_slot = "xxxxxx";
    google_ad_width = 200;
    google_ad_height = 200;
    <script type="text/javascript"
  5. Brogan

    Brogan XenForo Moderator Staff Member

    You're missing a "

    <div style="float: right">
  6. akhi_234

    akhi_234 Member

    got it, thanks a lot Brogan

Share This Page