CSS compatibility width IE7

Hi, I am having a problem with css for IE7

I want to put some text, side by side, image width. for example: http://imageshack.us/photo/my-images/14/imgwx.png/

The problem is that in IE7, text appears below the image.

I have the following HTML code:

   <div id="imageArticle"><img="src/here.jpg"></div>
   <div id="contentArticle">TEXT HERE </div>

  #imageArticle {
        float: right;
        margin-bottom: 20px;
        margin-left: 20px;
        margin-top: 15px;
        position: relative;
    }
#contentArticle {
    color: #333333;
    font-size: 13px;
    line-height: 17px;
    margin-top: 90px;
    padding-bottom: 20px;
    position: relative;
    width: 750px;
}

Any suggestions? Thanks

+3
source share
2 answers

Paste the image inside the #contentArticle, and then place it to the right

+3
source

As I understand correctly, you should do the following:

<html>
    <body>
    <div style="width:200px">
        <img class="myimage" src="test.jpg" width="90" height="90" style="float:right;"/>
        blabla bla blalbalba
        blabla bla blalbalba
        blabla bla blalbalba
        blabla bla blalbalba
        blabla bla blalbalba
        blabla bla blalbalba
        blabla bla blalbalba
    </div>
    </body>
</html>

Text and image side by side

I tested it on IE7 and it works great.

+3
source

All Articles