CSS to Center WordPress Navigation

3d Animation

If you want to center your WordPress navigation, you can use CSS to center the navigation element. This can also be used to send the navigation bar to the left and right.

Centered WordPress Navigation


#topnavHolder {
	text-align: center;
}

#topnavHolder ul {
display: inline-block;	
}

#topnavHolder li a {
	float: left;
}