View Full Version : PHP Photo Album Pagination

01-01-2007, 07:12 AM
1) Script Title:
PHP Photo Album
2) Script URL (on DD):
3) Describe problem:
Pagination. The links for pages 1 through 8 display on one line, and then for no apparent reason [there's plenty of room] the link to page 9 appears on a new line.
Please help me make it stop doing that.

01-01-2007, 11:09 AM
[there's plenty of room]

Is there? Check in the style section here:

#navlinks{ /*CSS for DIV containing the navigational links*/
width: 400px;

This allows only 400px of space for the page links until they would need to wrap. If, as you seem to imply, there is plenty of room for them on the page, this width value may be increased to - say, 600px. Another approach would be to just remove the rule altogether. That way the links will take up to the full available space before wrapping. In fact, if your gallery takes up the whole width of the window, this is the best way. However, if you have a real wide gallery, it may not display without a horizontal scrollbar in narrower windows/screens.

01-01-2007, 01:21 PM
Many thanks! I don't know why I didn't think about the control for that being in the style sheet. I assumed it was the script. :o

I truly appreciate the help. :) Happy New Year!