recreativestudios(.)com
No weird margins, but yes, the slider I am using does use overflow:hidden to show just the part that should be visible, while hiding the rest of the images. It's a jQuery plugin called Easy Slider.
HTML
Code:
<div id="slider_wrap">
<div id="slider">
<ul>
<li><img src="images/slider_chiro.png" alt="Chiro Life Center" /></li>
<li><img src="images/slider_wwwiaf.png" alt="Who Would Win In A Fight" /></li>
<li><img src="images/slider_onm.png" alt="Odor No More" /></li>
<li><img src="images/slider_ihbcwa.png" alt="IHBC Worship & Arts" /></li>
</ul>
<!-- end #slider --></div>
<!-- end #slider_wrap --></div>
CSS - Most of this is canned from the Easy Slider zip file.
Code:
#slider_wrap {
float:right;
margin:20px 65px 0 0;
height:275px;
width:400px;
}
#slider_wrap img, #slider_wrap a, #slider_wrap a img {
margin:0;
}
#slider ul, #slider li, #slider2 ul, #slider2 li {
margin:0;
padding:0;
list-style:none;
height:275px;
}
#slider2 {margin-top:1em;}
#slider li, #slider2 li {
width:400px;
height:275px;
overflow:hidden;
}
#prevBtn, #nextBtn, #slider1next, #slider1prev {
display:block;
width:27px;
height:54px;
position: relative;
left:-27px;
top:-165px;
z-index:1000;
}
#nextBtn, #slider1next {
left:400px;
top:-219px;
}
#prevBtn a, #nextBtn a,
#slider1next a, #slider1prev a {
display:block;
position:relative;
width:30px;
height:77px;
background:url(../images/slide_btn_left.png) no-repeat 0 0;
}
#nextBtn a, #slider1next a{
background:url(../images/slide_btn_right.png) no-repeat 0 0;
}
Bookmarks