JSFiddle - React, Tailwind, and code Playground
HTML
<!-- WITH CONTENT NEXT TO LOGO -->
<div class="container top-nav-bar">
<div class="top-nav-logo-area">
<span class="logo">B</span><span class="logo">B</span><span class="logo">C</span>
</div>
<div class="top-nav-link-div">
hello
</div>
</div>
CSS
html,
body,
p {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.container {
width: 1000px;
margin: 0 auto;
}
.top-nav-bar {
height: 40px;
border-bottom: 1px firebrick solid;
margin-bottom: 30px;
}
.top-nav-logo-area {
display: inline-block;
padding: 7px 7px 0 20px;
float: left;
}
.logo {
background-color: #222;
color: white;
font-family: monospace;
font-size: 22px;
padding: 0 5px;
margin: 0 0 0 3px;
line-height: 26px;
cursor: default;
}
.top-nav-link-div {
display: inline-block;
border-left: 1px #cccccc solid;
height: 40px;
line-height: 40px;
padding: 0 7px;
}