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> Quote Link to comment 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> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.