I'm attempting to showcase numbers in a single line using CSS. It's almost perfect, except the numbers are appearing in reverse order (e.g. 4 - 3 - 2 - 1 instead of 1 - 2 - 3 - 4). I've tried utilizing "direction: ltr" without success.
My CSS looks like this:
.pagination {
clear: both;
display: inline;
}
.page-number {
border: 1px solid #ccc;
color: #555;
padding: 10px;
float: right;
}
In my HTML view, it's structured as follows:
<div class="pagination">
<div class="page-number">1</div>
<div class="page-number">2</div>
<div class="page-number">3</div>
<div class="page-number">4</div>
</div>
What adjustments should I make to ensure the correct display order?
To clarify, simply changing "float: left" won't suffice as I want the numbers aligned on the right side of the page. My intention is for them to collectively float right while maintaining the correct sequential order from left to right.