I have serached all day and I couldn't find a solution to what I want to do. I know there are so many questions with this title, but none of them has worked for me.
What I am trying to do is a touch scrolling for mobile.
Here is my html:
<body>
<div id="slider_container">
<div class="wrapper">
<span>Image</span>
</div>
</div>
</body>
There will be minimum 2 spans containing image and maximum 10 span containing images. There will some php codes and span number will change according to the uploaded photos by the user.
Here is my css code:
body
{
width:100%;
overflow-x:hidden;
}
#slider_container
{
width:100%;
height:320px;
overflow: scroll;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
}
.wrapper
{
position:absolute;
height:320px;
}
.wrapper img
{
max-width:310px;
max-height:310px;
margin-right:5px;
float:left;
}
What I want is to give .wrapper automatic width and overflowing outside of #slider_container and body.
I hope I could tell clearly.
Thanks for all answers...