2 replies
  • WEB DESIGN
  • |
Hey guys,

let's imagine I have a content area on my page:

Code:
<div id="content">
            <p>
                     **Content etc**
            </p>
        </div>
I'd like to have an Adsense/HTML block at the top right of the text/content in which the the text wraps around.

texttexthtmlhtml
texttexthtmlhtml
texttexthtmlhtml
texttexttexttext
texttexttexttext
texttexttexttext

Can this be done?

Thank you so much for your help,

Louis
#trick #word #wrap
  • Profile picture of the author Amsterdam
    Yes it's actually very easy

    Surround your Adsense with a div and float it right, like so:

    Code:
    <div id="adsense">
        ADSENSE CODE HERE
    </div>
    <p>ENTER YOUR TEXT HERE</p>
    Your style sheet would have:

    Code:
    #adsense{
    float: right;
    }
    You can see an example here.

    Hope this helps,

    T
    {{ DiscussionBoard.errors[177291].message }}
  • Profile picture of the author vai_ron
    yep amsterdam is right, just float the div that you want
    {{ DiscussionBoard.errors[178873].message }}

Trending Topics