jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 736 forks source link

Pagination alignment #795

Closed stevespeirs closed 8 years ago

stevespeirs commented 8 years ago

Not really an issue, but trying to center align the pagination on the Basic Carousel. Any chance of some help with the css?

.jcarousel-pagination { position: absolute; bottom: 20px; margin: 0 auto; }

jsor commented 8 years ago

There are several ways to do it. From the top of my head i'd use something like:

.jcarousel-pagination {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
}

.jcarousel-pagination li {
    display: inline-block;
    position: relative;
    /* ... */
}
stevespeirs commented 8 years ago

Thanks so much. I'll try it!

On Wed, Mar 30, 2016 at 3:20 AM, Jan Sorgalla notifications@github.com wrote:

There are several ways to do it. From the top of my head i'd use something like:

.jcarousel-pagination { position: absolute; bottom: 20px; text-align: center; width: 100%; } .jcarousel-pagination li { display: inline-block; position: relative; /* ... */ }

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/jsor/jcarousel/issues/795#issuecomment-203284933