JSFiddle - React, Tailwind, and code Playground

by jestho

HTML

<div class="wrap">
    <div class="col"><button>Neste</button></div>
    <div class="col"><button>Tilbake</button></div>
</div>

CSS

* {
    -webkit-box-sizing: border-box;
}

.wrap {
    background: #eee;
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.col {
    display: inline-block;
    color: #fff;
    padding: 10px;
    width: 50%;
    margin-right: -0.2em;
}

.col:nth-child(1) {
    background: green;
}

.col:nth-child(2) {
    /*display: none;*/
    float: left;
    background: red;
}

button {
    padding: 10px;
    width: 100%;
}

@media all and (max-width:30em) {
    .col {
        width: 100%;
        margin: 0 0 5px;
    }
}