JSFiddle - React, Tailwind, and code Playground

by klaascuvelier

HTML

<h1>
    <div><hr /></div>
    <span>Login With</span>
    <div><hr /></div>
</h1>

<button type="button">Whatever</button>

<h1>
    <div><hr /></div>
    <span>Or with ...</span>
    <div><hr /></div>
</h1>


<button type="button">Something else</button>

CSS

body {
    background: #444;
    font-family: sans-serif;
}


h1 {
    clear: both;
    width: 100%;
    display: table;
    font-size: 12px;
    margin: 20px 0;
}

h1 div {
    display: table-cell;
    width: 50%;
}

h1 span {
    display: table-cell;
    white-space:nowrap;
    padding: 0 10px;
    text-align: center;
    vertical-align: middle;
    color: #eee;
}

h1 hr {
    border-left: none;
    border-right: none;
    border-top: 1px solid #333;
    border-bottom: 1px solid #555;
    vertical-align: middle;    
}

button {
    width: 200px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: #999;
    box-shadow: none;
    border: 0;
    padding: 5px;
    display: block;
    margin: 0 auto 50px auto; 
}