JSFiddle - React, Tailwind, and code Playground
by Alex Cowan
HTML
<div class="job-posting">
<img...
CSS
#nav-bar {
text-align: center;
font-weight: bold;
font-size: 20px;
font-family: Times, "Times New Roman", Georgia, serif;
color: #053989;
padding-left: 225px;
}
#search-select {
height: 100%;
width: 225px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #bebebe;
overflow-x: hidden;
padding-top: 50px;
padding-left: 20px;
}
#search-select input {
margin: 5px;
padding: 1px;
width: 175px;
text-decoration: none;
font-size: 12px;
color: #818181;
display: block;
}
#search-select select {
margin: 5px;
padding: 1px;
width: 175px;
text-decoration: none;
font-size: 12px;
color: #818181;
display: block;
}
#sort-results {
border-style: solid;
border-width: 1px;
border-color: #808285;
padding: 9px;
margin-left: 250px;
margin-right: 5px;
}
#result-sort {
display: inline;
}
#result-count {
display: block;
text-align: right;
float: right;
padding-left: 305px;
margin-right: 25px;
}
#result-area {
padding-left: 250px;
margin-right: 25px;
margin-top: 10px;
}
#job-list {
display: block;
float: left;
}
.job-posting {
margin: 7px;
padding: 0px 5px;
float: left;
border-style: solid;
border-color: #808285;
border-width: 1px;
height: 200px;
width: 100%;
margin-right: 25px;
line-height: 30px;
display: block;
min-height: 100px;
height: fit-content;
}
.job-posting:hover {
background-color: coral;
}
.job-description {
margin: 2px;
padding: 0px 5px;
float: right;
border-style: solid;
border-color: #808285;
border-width: 5px;
width: 500px;
height: 250px;
line-height: 20px;
display: inline;
}