Hi All,
I am stuck on a simple CSS problem, but can't seem to find a fix!
I am building a custom pagination system (ex p1 - p2 - p3 - p4 - p5 etc).
Each 'page number' is a LI, with CSS as:
ul.simplePagerNav li
{
display: block;
float: left;
padding: 10px;
margin-bottom: 10px;
font-family: georgia;
font-size: 14px;
}
The UL containing all the LI's are placed inside a DIV.
The DIV's CSS at the moment is:
<pre lang="css">#startSimplePagerNav
{
overflow: auto;
width: 500px;
height: 70px;
white-space: nowrap;
}</pre>
However, what I would like to achieve, is to have all the LI's in a long row, with a horizonal scrollbar only, so that users can scroll left and right to see the different page numbers, and not up and down.
At the moment, the text in the DIV runs down vertically, with the scrollbar appearing on the right.
Currently:
p1 - p2 - p3 - p4 -
p5 - p6 - p7 - p8
What I would like:
p1 - p2 -p3 - p4 - p5 - p6 - p7- p8
Can anybody help, please?