Center floating divs or menus or any kind of floats using css.
Source code viewer
<style type="text/css"> #menu-wrapper{position:relative;left:-50%;float:right} ul{position:relative;left:50%} li{display:block;float:left} </style> <div id="menu-wrapper"> <ul> <li>Link 1</li> <li>Link 2</li> <li>Link 3</li> </ul> <div style="clear:both"></div> </div>Programming Language: CSS