Not quite sure what you mean by the same width. Did you just set it using pixels from the link? What are your limitations? Do you know the width of the list? or communication line width?
<style type="text/css"> .menu { margin:0px auto; padding:0px; list-style-type:none; } .menu li { margin:0px auto; padding:0px; float:left; } .menu li a { display:block; width:200px; } </style> <ul class="menu"> <li><a href="#section1">Section1</a></li> <li><a href="#section1">Section1</a></li> <li><a href="#section1">Section1</a></li> </ul>
source share