jandrews3 Posted October 9, 2008 Share Posted October 9, 2008 Why won't this work? I'm trying to float an image and its caption around a paragraph. <tr> <td valign=\"top\"><div class=\"floatright\" align=\"center\"><img src=\"http://www.ithf.org/photos/set_b288400.jpg\" border=\"1\" style=\"margin-left: 5px; float: right;\"><br><p valign=\"bottom\">Caption</p></div><p align=\"justify\" style=\"margin-left: 5px;\">".$body."</p></td> </tr> Link to comment https://forums.phpfreaks.com/topic/127768-float-image-caption-with-paragraph/ Share on other sites More sharing options...
dropfaith Posted October 9, 2008 Share Posted October 9, 2008 show your css div class="floatright"> does nothing but class the div <div style="float:right;"> if your doing inline css</div> Link to comment https://forums.phpfreaks.com/topic/127768-float-image-caption-with-paragraph/#findComment-661366 Share on other sites More sharing options...
AndyB Posted October 9, 2008 Share Posted October 9, 2008 font of all float wisdom - http://css.maxdesign.com.au/floatutorial/introduction.htm Link to comment https://forums.phpfreaks.com/topic/127768-float-image-caption-with-paragraph/#findComment-661394 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.