Is there a way to make the entire LI
box clickable for the pagination box? The HTML and CSS parts are functioning correctly, as I am able to click the link with the page number to navigate to the next page.
However, the issue arises when trying to click the blank space beside the number on the LI
box, as it does not link to the next page. How can I make that area clickable as well?
Any suggestions on what steps should be taken to resolve this problem?
.pagination {
margin: 0;
padding: 0;
}
.pagination li {
display: inline;
padding: 6px 10px 6px 10px;
border: 1px solid #ddd;
margin-right: -1px;
font: 13px/20px Arial, Helvetica, sans-serif;
background: #FFFFFF;
}
.pagination li a {
text-decoration: none;
color: rgb(89, 141, 235);
}
.pagination li.first {
border-radius: 5px 0px 0px 5px;
}
.pagination li.last {
border-radius: 0px 5px 5px 0px;
}
.pagination li:hover {
background: #EEE;
}
.pagination li.current {
background: #89B3CC;
border: 1px solid #89B3CC;
color: #FFFFFF;
}
<ul class="pagination">
<li class="first">
<a href="/fs/mapping/mapping.php?page=1" title="First">«</a>
</li>
<li>
<a href="/fs/mapping/mapping.php?page=-1" title="Previous"><</a>
</li>
<li>
<a href="/fs/mapping/mapping.php?page=1">1</a>
</li>
<li class="active">2</li>
<li>
<a href="/fs/mapping/mapping.php?page=3">3</a>
</li>
<li>
<a href="/fs/mapping/mapping.php?page=4">4</a>
</li>
<li>
<a href="/fs/mapping/mapping.php?page=5">></a>
</li>
<li class="last">
<a href="/fs/mapping/mapping.php?page=5" title="Last">»</a>
</li>
</ul>
Any assistance on this matter would be highly appreciated.