Hello,
I have the following
<div id="big" style="width:100%">
<div id="slider">
<div class="item" id="item1"><img src="some50x50.jpg" /></div>
<div class="item" id="item2"><img src="some50x50.jpg" /></div>
<div class="item" id="item3"><img src="some50x50.jpg" /></div>
<div class="item" id="item4"><img src="some50x50.jpg" /></div>
</div>
</div>
CSS:
.item {text-align:center;float:left;width:50px;}
The ID=BIG DIV can be of random width, 500px, 800px, etc...based on the browser size
What'd I'd like to be able to do with jQuery is slide an item, like item 3, all the way to the left of the div id=slider.
Where I'm stuck is how to find the offset of the item to know how far to slide.
If would be great if there was a way to say Move item3 all the way to the left of DIV ID Slider...
Ideas?