JSFiddle - React, Tailwind, and code Playground
by iulianmihu
HTML
<div id="top_menu">
<div id="top_menu_div">
<div id="top_menu_div_left">
nume
</div>
<div id="top_menu_div_center">
text
</div>
<div id="top_menu_div_right">
test
</div>
</div>
</div>
<br><br>
CSS
#top_menu {
position: fixed;
top: 0;
right: 0;
left: 0;
height: 25px;
font-size: 18px;
padding: 5px;
background-color: #cae8ca;
border-bottom: 2px solid #4CAF50;
}
#top_menu_div {
display: flex;
height: auto;
width: 100%;
padding: 0px;
border: 1px solid grey;
}
#top_menu_div_left {
height: auto;
max-width: 200px;
float: left;
left: 0px;
padding: 0px;
align-content: left;
justify-content: left;
}
#top_menu_div_center {
float: left;
width: 70%;
flex: 1;
text-align: center;
}
#top_menu_div_right {
height: auto;
width: 30px;
float: left;
right: 0px;
padding: 0px;
vertical-align: middle;
text-align: center;
text-decoration: none;
border: 1px solid grey;
}