Auto center navigation links and other elements using CSS

margin: auto for the ul element, but than, we need to assign the width, which is very inconvenient when, for example, we need to add an extra link and we need to adjust the ul width again. In next posting, you will see that the solution is easy and you will find other situations where you can apply the same technique. View Demo]]>

Center a DropDown Menu Using CSS and jQuery

margin: auto won’t help in our case. Using this method, we can have an interesting design, with an arrow pointing up or you can come up with other design ideas. Also, for users without Javascript enabled in their browsers, the navigation will degrade gracefully and the positioning will be to the left of the parent. View Demo]]>