As mentioned earlier, if you duplicate the same effect on two divs, change the style to a class and use it on both. Secondly, the identifier cannot begin with a number, otherwise the style will not affect. Change it to secondEventImage or similar. If you program sites, I would suggest using Firefox and the Firebug plugin. This allows you to check if the style is being applied and make quick changes to see how this will happen before the code changes.
CODE - Example
div#two {margin-left: 10%;margin-right: 10%;overflow-x: scroll;overflow-y: hidden;}
div#two ul {list-style: none;height: 100%;width: 8000px;}
div#two ul li{float:left;}
div#two img {width: 200px;float: left;}
OR
div.sameDivs {..........}
div.sameDivs ul {..........}
div.sameDivs ul li {..........}
div.sameDivs img {..........}
<div id="lasteventimg" class="sameDivs"> ....... </div>
source
share