.tabs{ display:inline-block; width: 95%; } .tabs > div{ padding-top:10px; } .tabs ul{ margin:0px; padding:0px; } .tabs ul:after{ content:""; display:block; clear:both; height:5px; background:#0074A2; } .tabs ul li{ margin:0px; padding:0px; cursor:pointer; display:block; float:left; padding:10px 15px; background:#e9eaeb; color:#707070; } .tabs ul li.active, .tabs ul li.active:hover{ background:#0074A2; color:#fff; } .tabs ul li:hover{ background:#d6d6d7; }