• Resolved IWebsiteI

    (@affiligator)


    Hi,

    I have some problem to correctly show my wordpress page with an image on the right side. I tried to use <div> clear and BR clear.

    What I am looking for:

    <h2>header</h2>
    Content
    <h2>header</h2>
    Content

    On the right side of this an image which can be on the right side of all those elements.

    But I can’t get it correctly with the code.

    <img class=”right” src=”https://www.jpg&#8221; height=”300″ width=”200″>
    <h2>Header</h2>
    Content

    —- CSS
    .right { float: right; margin: 0 0 .5em .5em; }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Could you post the url for your test page.

    Thread Starter IWebsiteI

    (@affiligator)

    Solved it.

    A solution is to use for the <h2> tag display:inline

    <h2 style=”line-height: 40px; display: inline;”></h2>

    This will put in the top of the first row an image and the H2 text.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Align around image correctly’ is closed to new replies.