JSFiddle - React, Tailwind, and code Playground
by Vince Richter
HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
font-size: 28px;
font-family: Arial, Helvetica, sans-serif;
user-select: none;
}
.subhead{
text-align: center;
border-bottom: 2px solid #2f2f2f;
border-top: 2px solid #2f2f2f;
padding: 12px 0 12px 0;
font-size: 17px;
}
*{
box-sizing:border-box;
}
.column {
float: left;
width: 33.3333333333%;
padding: 10px;
height: 300px;
font-size: 15px;
}
.column-1{
float: center;
width: 33.3333333333%;
padding: 10px;
height: 300px;
font-size: 15px;
display: inline-block;
}
.column-2{
float: right;
width: 33.3333333333%;
padding: 10px;
height: 300px;
font-size: 15px;
display: inline-block;
}
.row:after {
content: "";
display: table;
clear: both;
}
.header {
background-color: #f1f1f1;
padding: 30px;
text-align: center;
}
#navbar {
overflow: hidden;
background-image: #333;
}
#navbar a {
height: 200px;
float: center;
display: block;
color: #f2f2f2;
text-align: center;
padding: 80px 15px;
text-decoration: none;
font-size: 40px;
}
#navbar a:hover {
background-image: url("https://www.seaworldofhurt.com/wp-content/uploads/2014/03/tilikum_05.jpg");
color: black;
}
#navbar a.active {
background-image: url("https://www.seaworldofhurt.com/wp-content/uploads/2014/03/tilikum_05.jpg");
background-position: center;
background-position-y: center;
background-size: cover;
color: white;
}
.content {
padding: 16px;
}
.sticky {
position: fixed;
top: 0;
width: 100%;
}
.sticky + .content {
padding-top: 60px;
}
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px grey;
border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: linear-gradient(lightblue, aquamarine, darkblue);
border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
...