Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

images horizontal scroll

<html>
<head>
<style>
#container {
    width: 100%;
    height: 150px;
    background-color: #ff0000;
    overflow: visible;
    white-space:nowrap;
}

#container .slide {
    display: inline-block;
}
</style>
</head>
<body>
<div id="container">
    <div class="slide">
        <img src="http://placehold.it/300x150"/>
    </div>
    <div class="slide">
        <img src="http://placehold.it/300x150"/>
    </div>
    <div class="slide">
        <img src="http://placehold.it/300x150"/>
    </div>
    <div class="slide">
        <img src="http://placehold.it/300x150"/>
    </div>
    <div class="slide">
        <img src="http://placehold.it/300x150"/>
    </div>
    <div class="slide">
        <img src="http://placehold.it/300x150"/>
    </div>
</div>
</body>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #images #horizontal #scroll
ADD COMMENT
Topic
Name
7+2 =