WordPress.org

Ready to get started?Download WordPress

Forums

How do a wrap my text around a javascript block? (3 posts)

  1. Delta223
    Member
    Posted 1 year ago #

    Hi all,

    I would like to wrap text around my Google Ad block. I know how to do this for pictures but not javascript code. How can I do this?

    Here is my site by the way:

    http://nursing-courses.net/

    Thanks!

  2. KristinCodesWP
    Member
    Posted 1 year ago #

    Is your Google Ad block placed in the content area itself (like did you copy and paste the code into the content area) or is it in your theme files? You can try surrounding the code with a div and giving in a float:left style like:

    <div style="float:left; margin-right:10px;">
    GOOGLE AD CODE HERE
    </div>

    or better to avoid inline styling:

    <div class="google-ad">
    GOOGLE AD CODE HERE
    </div>

    Then place this:

    .google-ad {
    float:left;
    margin-right:10px;
    }

    in your theme's stylesheet.

    The margin is just there to give the ad a little breathing room so the text doesn't start at its edge but its optional and can be reduced/increased by making the value smaller or larger.

  3. Delta223
    Member
    Posted 1 year ago #

    Thank you very much Kristin!

    to answer your question, it was placed in the content area (not the theme files)

Topic Closed

This topic has been closed to new replies.

About this Topic