I have a footer div which have child divs which need to move horizontally.This works fine,but I need to make all the divs to be in a single line,rather than breaking the divs. The count of divs with class img1
can be unlimited according to the database query result. I am not much expertised in css.Please help me.
.footer
{
background-color:grey;
overflow:hidden;
width:100%;
float:left;
padding:1%;
margin-top:2%;
}
.container
{
padding:1%;
width:90%;
overflow:hidden;
}
.marquee{
display:block;
position:relative;
width:100%;
padding:1%;
animation:scroll 10s linear infinite;
padding:2%;
}
.marquee:hover {
animation-play-state: paused
}
.img1 {
width:15%;
padding:1%;
background-color:#f6f6f6;
margin:1%;
float:left;
}
/* Make it move */
@keyframes scroll{
0% {left:100%;}
100% {left:-100%;}
}
<div class="footer">
<div class="row">
<div class="container">
<div class="marquee">
<div class="img1">Winner 1</div>
<div class="img1">Winner 2</div>
<div class="img1">Winner 3</div>
<div class="img1">Winner 4</div>
<div class="img1">Winner 5</div>
<div class="img1">Winner 6</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>