| Page 1 of 1 | [ 4 posts ] |
|
Hi, anyone know if it's possible to change the thumbnails' horizontal-spacing in the YUI2 Carousel Control? Can't see anything about it in the API docs.
Here's a quick screengrab... ![]() |
|
... and, using firebug, i see that the positioning of the thumbnails is done with css like this:
left: 90px; top: 0px; No margins or padding used. So the positioning is done strictly in the carousel's javascript, and so the API is the only way you might be able to change the positioning. |
|
Hi chichi latté,
The Carousel widget after release 2.7.0 uses absolute positioning to position the list elements. But that said, the position is calculated by taking border, padding and margin of the individual element. So if you apply a padding to ".yui-carousel-element li", it should work. HTH |
|
That's fantastic Gopal, thank you v much! I was thrown by the programmatic layout based on the css, but it works perfectly
|
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group