daveoffy Posted December 13, 2008 Share Posted December 13, 2008 I have the following code if (mysql_num_rows($result1) < 1){ echo '<a href="member-profile.php?member_id='.$friend.'"><img src="uploads/users/default.png" width="100px" align="left" border="0"></a>'.$friend_name.' '.$friend_lname.'<br>Remove Friend<div class="friendsbox"></div>'; }else{ echo '<a href="member-profile.php?member_id='.$friend.'"><img src="uploads/users/'.$p_id.'" width="100px" align="left" border="0"></a>'.$friend_name.' '.$friend_lname.'<br>Remove Friend<div class="friendsbox"></div>';} unset($friend); } and it works great but one thing. In the image we have align="left and in a normal HTML document it wraps the word around the image. In the echo it does not. How can I get word wrap working in an echo statement? Quote Link to comment Share on other sites More sharing options...
gevans Posted December 13, 2008 Share Posted December 13, 2008 Should make no difference, check your source from the client side make sure it printing out ok. If it is and still doesnt work try using some css style style="float: left;" Quote Link to comment Share on other sites More sharing options...
daveoffy Posted December 13, 2008 Author Share Posted December 13, 2008 **OLD**It prints out everything in the source code right, it just wont work. I am so confused right now. I don't have any styles getting in the way of this. Any other ideas?**OLD** **EDIT**I fixed it, it was my stupid CSS I forgot I added something. Thanks for all your help**EDIT** 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.