shorty3 Posted October 13, 2009 Share Posted October 13, 2009 right i have this code <?php $start = TRUE; while ($online_array = mysql_fetch_assoc($select2)) { if ($start) { echo "<table width='90' height='100' class='thinline'><tr><td align='center' bgcolor='#222222' valign='middle'>"; echo $online_array['username']; echo "<br><img src='".$online_array['image']."' width='70' height='70' border='1'/></td></tr></table>"; $start = FALSE; } else { echo "<table width='90' height='100' class='thinline'><tr><td align='center' bgcolor='#222222' valign='middle'>"; echo ' '.$online_array['username']; echo "<br><img src='".$online_array['image']."' width='70' height='70' border='1'/></td></tr></table>"; } } echo ' were online recently'; ?> How can i make it so they go to the side of each other instead of below each other Quote Link to comment Share on other sites More sharing options...
MadTechie Posted October 13, 2009 Share Posted October 13, 2009 This is a HTML/CSS issue but the first step would be to remove the <br> Quote Link to comment Share on other sites More sharing options...
trq Posted October 13, 2009 Share Posted October 13, 2009 Your question relates to html, not php, wrong board. Quote Link to comment Share on other sites More sharing options...
shorty3 Posted October 13, 2009 Author Share Posted October 13, 2009 ok but thing is which <br> becuase i really cant see nothing wrong Quote Link to comment Share on other sites More sharing options...
haku Posted October 14, 2009 Share Posted October 14, 2009 table { float:left; } 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.