I am currently facing an issue with displaying page navigation buttons and a dropdown box side-by-side as they are not aligning properly.
Both items are set to float right. To see the issue in action, check out this Fiddle: http://jsfiddle.net/u9dBm/1/
Here is what's happening:
- The red cross indicates the current alignment issue.
- The red cross and green tick show the desired alignment, but there seems to be a one-pixel difference in the dropdown box's top margin. When the dropdown box is positioned separately from the buttons, they appear to be of the same height...
- The green tick represents the ideal alignment.
Why are these two elements not aligning properly in terms of their heights?
Additionally, I am curious about something unrelated to the problem. Why does the SPAN
containing the dropdown display to the left when placed after the pages button? Shouldn't it logically appear after the button since it is coded after it?