.barcontainer {
position: relative;
border: 3px solid black;
border-radius: 5px 5px 0 0;
width: 80%;
margin: 0 auto;
min-height: 25vw;
max-height: 50vw;
min-width: 20%;
max-width: 60%;
z-index: 1;
}
.barcontainerheader {
display: inline;
position: absolute;
width: 100%;
padding-top: 3px;
padding-bottom: 3px;
background: blue;
border-bottom: 3px solid black;
font-size: 1.5em;
color: white;
text-align: center;
text-shadow: 2px 2px 0 black;
z-index: 0;
}
.bar {
position: absolute;
display: inline-block;
bottom: 0;
border: 1px solid black;
border-radius: 6px 6px 0 0;
background: #4CAF50;
width: 4%;
text-align: center;
color: white;
text-shadow: 1px 1px 0 black;
box-shadow: 4px 0 8px #888;
}
.barlabel {
position: absolute;
border-top: 2px solid black;
background: blue;
bottom: 0;
width: 100%;
text-shadow: 1px 1px 0px black;
color: white;
}
.bar:nth-child(2) {
left: 0%;
}
.bar:nth-child(3) {
left: 5%;
}
.bar:nth-child(4) {
left: 10%;
}
.bar:nth-child(5) {
left: 15%;
}
.bar:nth-child(6) {
left: 20%;
}
.bar:nth-child(7) {
left: 25%;
}
.bar:nth-child(8) {
left: 30%;
}
.bar:nth-child(9) {
left: 35%;
}
.bar:nth-child(10) {
left: 40%;
}
.bar:nth-child(11) {
left: 45%;
}
.bar:nth-child(12) {
left: 50%;
}
.bar:nth-child(13) {
left: 55%;
}
.bar:nth-child(14) {
left: 60%;
}
.bar:nth-child(15) {
left: 65%;
}
.bar:nth-child(16) {
left: 70%;
}
.bar:nth-child(17) {
left: 75%;
}
.bar:nth-child(18) {
left: 80%;
}
.bar:nth-child(19) {
left: 85%;
}
.bar:nth-child(20) {
left: 90%;
}
.bar:nth-child(21) {
left: 95%;
}
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 70%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
