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 Link to comment https://forums.phpfreaks.com/topic/177608-location-help/ 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> Link to comment https://forums.phpfreaks.com/topic/177608-location-help/#findComment-936452 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. Link to comment https://forums.phpfreaks.com/topic/177608-location-help/#findComment-936453 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 Link to comment https://forums.phpfreaks.com/topic/177608-location-help/#findComment-936457 Share on other sites More sharing options...
haku Posted October 14, 2009 Share Posted October 14, 2009 table { float:left; } Link to comment https://forums.phpfreaks.com/topic/177608-location-help/#findComment-936491 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.