I am using a CMS (Drupal) and do not have control of the order in which HTML tags appear in the teaser. The order is content first and image second like this: <font id='content' style="?">...</font> ... <img src=... style="?"/> Code (markup): ...content before image. (I can not change that.) I can change the font tag to a div tag though. In this teaser I want the layout to be like this: ---------------------------------------- | | | | content | image | | | | ---------------------------------------- Code (markup): How can I do this with CSS? I could inject a table instead; would a table be a better approach than CSS? Thanks in advance.
<font id='content' style="float:left;">...</font> ... <img src=... style="float:left"/> <div style="clear:both;"></div>
You can also wrap them in a div and specify the width and let the both float left #wrap {width:600px} #box1 {width:450px; float:left;} #box2 {width:150px; float:left;} <div id="wrap"> <div id="box1">...content...</div> <div id="box2">...content...</div> </div> You can also use tables instead, but tables aren't too much customizable.