JSFiddle - React, Tailwind, and code Playground

by Divya Babu

HTML

<div class="header">
        <div>
            <h1 class="heading">William Marchesi</h1>
            <a class="contactButton" href="#contact">Contact</a>
        </div>
    </div>

CSS

html {
            height: 100%;
            background-repeat: no-repeat;
            background-color: green;
        }

        body {
            font-size: 87.5%;
            /* Base font size on 14px */
            font-family: sans-serif;
            line-height: 1.5;
            text-align: justify;
            margin: 0 auto;
            padding: 0;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .header div {
            margin: 0 auto;
            padding: 0;
            text-align: center;
        }

        .header {
            background-color: #FCFCFC;
            padding: 0;
        }
        .header > div{
          display: flex;
          flex-direction: row;
          justify-content: flex-end;
          align-items: center;
        }
        .heading,
        .contactButton {
            padding: 0;
            margin: 0;
            line-height: 3em;
            font-family: 'Nunito', sans-serif;
        }

        .heading {
            font-size: 3em;
            padding: 0;
            margin: 0;
        }