JSFiddle - React, Tailwind, and code Playground

Responsive grid with CSS Grids

by L. Van Warren

HTML

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="index.css">
<title>Van Warren's Sketchbook</title>
</head>
<body>
<div class=header>
    <img src="https://wdv.com/images/wdvLogoPapyrus.png" alt="Van Warren's Sketchbook">
</div>
<div class="container">
<button class="imageButton">
    <a  href="https://wdv.com/Calculus/index.html">
        <img src="https://wdv.com/images/calculus.gif" alt="Calculus">
    </a>
    <div class=text>
        <a  class=link
            href="https://wdv.com/Calculus/index.html">
            Calculus
        </a>
    </div>
</button>
<button class="imageButton">
    <a  href="https://goo.gl/XS8kkG">
        <img src="https://wdv.com/images/animation.png" alt="Animation">
    </a>
    <div class=text>
        <a  class=link
            href="https://goo.gl/XS8kkG">
            Animation
        </a>
    </div>
</button>
<button class="imageButton">
    <a  href="https://wdv.com/DSP/index.html">
        <img src="https://wdv.com/images/dsp.gif" alt="DSP">
    </a>
    <div class=text>
        <a  class=link
            href="https://wdv.com/DSP/index.html">
            DSP
        </a>
    </div>
</button>
<button class="imageButton">
    <a  href="https://wdv.com/Ionosonde/index.html">
        <img src="https://wdv.com/images/ionosonde.png" alt="Ionosonde">
    </a>
    <div class=text>
        <a  class=link
            href="https://wdv.com/Ionosonde/index.html">
            Ionosonde
        </a>
    </div>
</button>
<button class="imageButton">
    <a  href="https://ogleearth.com/2007/09/xml-or-the-coming-transformation-of-observational-astronomy/">
        <img src="https://wdv.com/images/radioTelescope.jpg" alt="Astronomy">
    </a>
    <div class=text>
        <a  class=link
            href="https://ogleearth.com/2007/09/xml-or-the-coming-transformation-of-observational-astronomy/">
            Astronomy
        </a>
    </div>
</button>
<button class="imageButton">
    <a ...

CSS

.container {
    border: 1px solid yellow;
    height: 100%;
    display: grid;
    grid-gap: 10px;
    justify-content: space-around;
    align-content: center;
    grid-auto-rows: 150px;
    grid-template-columns: repeat(3, 128px);
}

.container>div {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: medium;
    color: #ffeead;
    background-color: #000000;
    /* or #99XX99 */
}

.container>button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: medium;
    color: #ffeead;
    background-color: #000000;
    /* or #99XX99 */
}

html,
body {
    box-sizing: border-box;
    background-color: #2e1c0f;
    /* or #99XX99  or #2e1c0f;*/
    margin: 10px;
    padding: 10px;
}

.header {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic {}

.text {
    color: gray;
    background-color: transparent;
    font-size: medium;
    font-weight: normal;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
    text-align: center;
    /* border: 1px solid green; */
}

a.link:link {
    color: gray;
    background-color: transparent;
    font-size: medium;
    font-weight: normal;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
    text-align: center;
    /* border: 1px solid green; */
    text-decoration: none;
}

a.link:visited {
    color: lightyellow;
    background-color: transparent;
    font-size: medium;
    font-weight: normal;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
    text-align: center;
    /* border: 1px solid green; */
    text-decoration: none;
}

a.link:hover {
    color: lightgray;
    background-color: transparent;
    font-size: medium;
    font-weight: normal;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans...