CSS to align center the drupal pager

11 years ago, February 4, 2013
Reading time: 1 mins

The default drupal pager may be tricky for some developers to align to center, though its really simple. Simple as follows.


ul.pager{ 
text-align: center; 
}

ul.pager li {
border: 1px solid #bbb;
display: inline-block;
margin: 0px 5px 0 0;
padding: 5px 8px; 
}
Previous
Select all contacts with Javascript code to easily invite friends to a page on facebook
Next
An illegal choice has been detected in drupal select field|Bypass validation for ajax loaded options
© 2024 Anil Maharjan