Hey,
I am currently working on a site and having a problem (see below photo)
http://img838.imageshack.us/img838/5586/38840642.png
What I want is to have for lots of profile photo and name on one line and when there are four on one line it moves the fifth to the next line.
Here is my current code -
and the CSS -
Thanks
I am currently working on a site and having a problem (see below photo)
http://img838.imageshack.us/img838/5586/38840642.png
What I want is to have for lots of profile photo and name on one line and when there are four on one line it moves the fifth to the next line.
Here is my current code -
Code:
echo "<font size='4'><u>".$assoc3['name']."</u></font><br /><br />"; while($assoc4 = $db->assoc($query4)) { $date = date("d-m-Y", strtotime($assoc4['date'])); $query5 = $db->query("SELECT firstname, lastname, avatar_location FROM users WHERE id='$assoc4[uid]'"); $assoc5 = $db->assoc($query5); echo "<div id='userblock'><span style='float:left'><img src='".$assoc5['avatar_location']."' width='50' height='50' /></span><span style='float:left;padding-left:5px;padding-right:15px;'><a href='profile.php?id=".$assoc4['uid']."'><b>".$assoc5['firstname']." ".$assoc5['lastname']."</b></a><br />Added On ".$date."</span></div>"; }
Code:
#userblock{width:25%;}
Comment