The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Center align pagination bar
Hi,
My WordPress theme has a pagination bar at the bottom of each page. Its left aligned, by default.
Can someone please help me to center align this bar?
HTML:
Page x of x 1 2 3 4 Next › Last »
CSS:
.pagination { clear:both; position:relative; font-size:11px; } .pagination span, .pagination a { display:block; float:left; margin: 2px 2px 2px 0; padding:6px 9px 5px 9px; text-decoration:none; color: #ddd; background: #222; } .pagination .current{ padding:6px 9px 5px 9px; font-weight: bold; background: #0950E8; }
Is this the effect you were looking for?
http://jsfiddle.net/mPEvt/
Cheers
Yes, that’s exactly what I wanted.
Thanks Mattohara.