* { padding:0; margin:0; } body { margin-top:40px; } #header { height:40px; line-height:40px; position:fixed; width:100%; top:0px; border-bottom:1px solid red; color:#000; } #main { height:2000px; color:#000; } #header ul li { float:left; width:25%; text-align:center; list-style:none; }