* { margin:0; padding:0; list-style:none; } ul { width:800px; margin:0 auto; position:relative; overflow:hidden; } li { float:left; line-height:48px; margin:0 30px 0 0; cursor:pointer; } li:hover,.active { color:#ff701d; } .line { display:block; position:absolute; border:0; height:5px; background-color:#ff701d; /*left:0; */ bottom:0; pointer-events:none; border-radius:5px; }