Pagination div isn't properly displayed

Pagination div isn't properly displayed

dmolavidmolavi Posts: 65Questions: 0Answers: 0
edited January 2011 in General
See the example at http://www.gallerymodules.com/combined.php

The pagination div is to the right and below the div showing the count. I've tried the "clear:both" hack in a variety of places, but it didn't work. Any thoughts/suggestions?

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    The length container element is taking up the full width - forcing the search onto the next line (likewise the info / pagination). You could add something like div.dataTables_length{ width:40% } to fix that. The default CSS might be useful to have a look at as it includes these kinds of styles.

    Allan
  • dmolavidmolavi Posts: 65Questions: 0Answers: 0
    I was referencing the pagination elements at the bottom of the table, but thanks for pointing out the search box issue...the "showing x of y" is not full-width, but the pagination buttons still appear below/right of it.
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    I jumped ahead a bit there - sorry :-). You need to add div.dataTables_info { float: left }. But you will also need a clearing element at the end of the table. You could use sDom ( http://datatables.net/usage/options#sDom ) to do something like "sDom": 'lfrtip<"clear">'.

    Allan
  • dmolavidmolavi Posts: 65Questions: 0Answers: 0
    BINGO!! Thanks a million :)
This discussion has been closed.