Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

Thread Tools Display Modes
Share |
Old 06-26-2014, 01:39 AM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
Join Date: 02-10-10
Posts: 225
iTrader: 0 / 0%
prevent vertical overflow with css

i want to use css to prevent the content of a div from shifting to the next line so that a user can scroll from left to right only. i have the following which produced what i have in the attachment.

PHP Code:
<div id="ss" style="width:800px; border:1px solid black; margin:auto; margin-top:50px; height:85px; overflow-x:scroll; overflow-y:hidden;">
while($ots mysql_fetch_array($other)){ ?>
   <div id="listing">
      <img src="<?php echo $paths?>" id="<?php echo $ots['class']; ?>" />
   <?php ?>
#listing{ height:80px; width:80px; overflow:hidden; display:inline-block; margin:2px; -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3); -moz-box-shadow: 0 1px 3px rgba(0,0,0, .3); box-shadow: 0 1px 3px rgba(0,0,0, .3); }
Attached Thumbnails
Click image for larger version

Name:	2014-06-26 08_25_28-localhost_bloom_media_test.php_id=2 - Opera.jpg
Views:	138
Size:	152.6 KB
ID:	18057  
Reply With Quote



Go Back   Webmaster Forum > Web Development > Coding Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[CSS] Overflow issues kcmartz Coding Forum 9 06-03-2011 08:41 AM
overflow issue detoam Coding Forum 3 02-03-2010 02:22 PM
Excel: Hiding Overflow chicgeek Tech Talk 5 10-30-2007 01:37 PM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 02:17 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC