How to prevent images/blocks from wrapping?

I'm trying to have a list of images displayed horizontaly. It's kind of like a [carousel][1] except instead of using jquery and animations I'd just have a scrollbar
.playlist-wrapper{width: 500px; overflow-x:scroll} ul{width: 10000px;} li{float:left} The problem here is that I have to define the width of the UL tag because if I don't the images are going to go the next line and I'm going to get an Y scroll that I don't want. I *can't* use jQuery. I tried no-wrap, but this only works for text. Any idea? [1]:
are you loading the images dynamically? are they all the same sizes, or different sizes?

以上就是How to prevent images/blocks from wrapping?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准