I was trying to create a html page with a <div>
to simulate an iframe. I decided on using this example online. Basically, I have about 30 images with varying height and length not greater than 750px width and 500 px height. I was looking at having only a horizontal scrollbar.
http://www.websitecodetutorials.com/code/photo-galleries/css-horizontal-scroller4-demo.php
I was facing an issue with three things in this tutorial
The images seem to be top aligned. I want them to be middle aligned and not top aligned horizontally.
I was unable to increase the gap between the horizontal images. I wanted to make it 200px. but the whole set of images moves down. Looks like it adds the 100px to the top also?
In mobile safari, I dont see a scrollbar. Is there any feature I can use to show the scrollbar?
#scroll {
width:665px;
height:530px;
margin:0px auto;
background:#ffffff;
overflow-y:hidden
}
#scroll ul {
float:left;
margin-right:-999em;
white-space:nowrap;
list-style:none;
}
#scroll li {
margin:15px;
text-align:center;
float:left;
display:inline;
}
#scroll img {
border:0;
display:block;
margin:0px auto;
}
#scroll span {
padding:100px 0 0;
display:block;
}
<div id="scroll">
<ul>
<li><a href="#"><img src="../images/img1.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img2.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img3.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img4.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img5.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img6.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img7.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img8.jpg" alt=""><span>Image Name</span></a></li>
<li><a href="#"><img src="../images/img9.jpg" alt=""><span>Image Name</span></a></li>
</ul>
</div>
before and after?
– Ryan Dec 17 '13 at 16:34