JSFiddle - React, Tailwind, and code Playground

HTML

<div class="contain">
  <div id="one" class="tab selected" >Link1</div>
  <div id="two" class="tab" >Link2</div>
  <div id="three" class="tab" >Link3</div>
  <div id="four" class="tab" >Link4</div>
  <div id="five" class="tab" >Link5</div>
</div>

CSS

<style type="text/css">
* {
    margin:0;
    padding:0;
    list-style:none;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    margin:10px;
}

.tab {
    width:100%;
    padding:5px;
    background:#fff;
    color:#000;
    cursor:pointer;
    font-weight:bold;
    border-bottom:1px solid black;
}

.tab:hover{
    background:#a0a0a0;
}

.tab_child{
    padding:15px;
    background:#fff;
}

.selected{
    background:#a0a0a0;
}

.contain *{
    float:left;
    width:100px;
}

</style>