My goal is to style the circled elements shown in the image above. Unfortunately, I'm unable to provide a jsfiddle due to my usage of a plugin called caroufredsel and my limited understanding of Javascript and jQuery. Here is my CSS and HTML code:
<div class="list_carousel">
<ul id="foo2">
<li>c</li>
<li>a</li>
<li>r</li>
<li>o</li>
<li>u</li>
<li>F</li>
<li>r</li>
<li>e</li>
<li>d</li>
<li>S</li>
<li>e</li>
<li>l</li>
<li> </li>
</ul>
<div class="clearfix"></div>
<a id="prev2" class="prev" href="#"><img src="image/images/carousel_control_03.png"/></a>
<a id="next2" class="next" href="#"><img src="image/images/carousel_control_05.png"></a>
<div id="pager2" class="pager"></div>
</div>
This is the corresponding CSS code:
.list_carousel {
background-color: #ccc;
margin: 0 76px 30px 76px;
width: 808px;
}
.list_carousel ul {
margin: 0;
padding: 0;
list-style: none;
display: block;
}
... (CSS continued)
I have attempted adding background: url()
and content: url()
to .pager a
without any success. I also tried using text-indent:-999px
to hide the text and showcase the background, but that did not work either. Additionally, here is the associated Javascript with the plugin:
$('#foo2').carouFredSel({
auto: false,
prev: '#prev2',
next: '#next2',
pagination: "#pager2",
mousewheel: true,
swipe: {
onMouse: true,
onTouch: true
}
});