Help with slider CSS

Soldato
Joined
27 Sep 2004
Posts
13,380
Location
Glasgow
Evening,

I'm currently in the process of editing the Orbit slideshow plugin(jquery) and I've came up against a problem with styling.

See here:
http://ryanarts.co.uk/orbit_testing/demo/demo.html

As you can see the little slider buttons are messed up because I've got too many - the arrows are fixed into a specific position.

I'm looking for a way to fix the arrows and buttons together so that regardless of image amounts, the buttons/arrows will always be on the same line and simply move across to the left.

Does that make sense?

Any advice would be great.
 
Last edited:
Here's the CSS:

Code:
div.slider-nav {
    display: block;
    }

div.slider-nav span {
    float: right;
    width: 15px;
    height: 15px;
    text-indent: -9999px;
    position: absolute;
    z-index: 1000;
    top: 20%;
    margin-top: -50px;
    cursor: pointer; }

div.slider-nav span.right {
    background: url(orbit/bullet_right.gif);
    right: 10px; }

div.slider-nav span.left {
    background: url(orbit/bullet_left.gif);
    left: 770px; }

/* Bullets */

.orbit-bullets {
    position: absolute;
    z-index: 1000;
    list-style: none;
    float: right;
    /*bottom: -40px;*/
    left: 90%;
    top: 6%;
	margin-left: -50px;
    padding: 0; }

.orbit-bullets li {
    float: left;
    margin-left: 4px;
    cursor: pointer;
    color: #999;
    text-indent: -9999px;
    background: url(orbit/bullet.gif) no-repeat /*4px 0*/;
    width: 18px;
    height: 15px;
    overflow: hidden; }

.orbit-bullets li.active {
    color: #222;
    background: url(orbit/bullet_down.gif) no-repeat; 
   /* background-position: -8px 0; */ }
    
.orbit-bullets li.has-thumb {
    background: none;
    width: 100px;
    height: 75px; }

.orbit-bullets li.active.has-thumb {
    background-position: 0 0;
    border-top: 2px solid #000; }
 
Back
Top Bottom