Image and Div side by side

Giganews Newsgroups
Subject: Image and Div side by side
Posted by:  shapper (mdmou…@gmail.com)
Date: 22 Dec 2006

Hello,

I have a container div and inside it I have an image and another div
which I want to place side by side:

<div id="container">
  <img id="image"/>
  <div id="content">
</div>

Is it possible to float the image left and the div right and make them
side by side with CSS?

I know how to do this by placing the image inside another div but I
would like to avoid that.

Thanks,
Miguel

Replies