I am trying to get CSS sorted for a pager. I have a div placed on the left for page numbers, and one floating on the right for a small form containing controls to determine the number of elements on the page.
When the page is in full size, the divs are far enough apart, it doesnโt really matter, but when the page changes so that the divs are almost touching, itโs noticeable.
How to change my CSS or HTML so that the text is vertically aligned between two divs?
Currently it looks like this:

In addition, the text does not matter much in every page number. How do I make this work?
Matching CSS:
ol.mini-form { margin: 0; padding: 0; } ol.mini-form li { display: inline; } ol.pager-pages { margin: 0.5em 0; padding: 0.5em 0; float: left; } ol.pager-pages li { padding: 0.4em; margin: 0.1em; border: 1px solid #ccc; text-align: center; } ol.pager-result { padding: 0.4em; float: right; }
HTML:
<div> <ol class="mini-form pager-pages"> <li> <a href="...">1</a> </li> <li> <a href="...">2</a> </li> <li> <a href="...">3</a> </li> </ol> <form action="..." method="get"> <ol class="mini-form pager-result"> <li> <select name="PageSize"> <option value="5">5</option> <option selected="selected" value="10">10</option> <option value="20">20</option> <option value="50">50</option> </select> </li> <li> per page </li> <li> <input type="submit" value="Set" /> </li> </ol> </form> <div style="clear: both;"></div> </div>
Thanks.
source share