css - Horizontal scrolling of divs inside a table PHP -


how make horizontal scrolling lot of divs inside table? i'm trying bar of friends...

echo '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td style="">'; foreach($friends $fr){ $friend = $ots->createobject('account'); $friend->load($fr); $profile_img = $friend->getcustomfield("profile_img"); foreach (array("/", "\\", "..") $chan) { $profile_img = str_replace($chan, "", $profile_img); } if (empty($profile_img) || !file_exists("account/profiles/".$profile_img)) { $profile_img = "default.png"; } echo '<div style="border-right:1px solid #faf0d7;width:82px;height:82px;position:relative;float:left;background-image:url(account/profiles/'.$profile_img.');background-repeat:repeat-y;background-size:82px 82px;">'.$fr.'</div>'; } echo '</td></tr></table>'; 

note divs can @ horizontal line. i've been tried , found @ internet. please :x

this give scrollable table cell contains divs. in instance not float left divs, instead use display: inline-block;

tr > td { overflow-x: scroll; } 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -