For beginners of the new design site front end of the novice friends, will inevitably encounter the phenomenon of navigation bar disorder, in general, the navigation Bar Center alignment is the best way to display the first page. So how to use simple div+css to make the navigation bar center alignment effect? This article is for you to introduce a very simple way to achieve the center of the navigation bar alignment, we hope to help!
The navigation bar is centered on the alignment example code as follows:
<! DOCTYPE html>
This code can be copied directly in the local test, the Web page is displayed as:
Related label properties are described:
The Text-decoration property specifies the adornment that is added to the text. The possible values and descriptions of the owning
"Related articles recommended"
CSS in five ways to achieve the navigation menu Horizontal Center example of the detailed
How to make a navigation bar with Div and CSS
Div+css making the first level navigation
How to use CSS to center the DIV display