JSFiddle - React, Tailwind, and code Playground

HTML

<div class="general two">

    <p>
        Multiple borders using a <br/>
        <code>:before</code> pseudo-element
    </p>

    <p class="fluidity">
        <a href="#" onclick="toggleText();">
            Check the vertical<br/>
            and horizontal<br/>
            fluidity of this box
        </a>
    </p>
    
    <p id="wide">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>

</div>

CSS

body{
    background-color: black;
    text-align: center;
}

.general {
    display: inline-block;
	min-width: 300px;
    max-width: 500px;
	min-height: 300px;
	background: #222;
    color: white;
	margin-top: 40px;
}

.two {
	border: solid 6px blue;
	position: relative;
}

.two:before {
	content: "";
	position: absolute;
	top: -12px;
	bottom: -12px;
	right: -12px;
	left: -12px;
	border: solid 6px #888;
}

p {
	font-family: Arial, sans-serif;
	font-size: 20px;
	font-weight: bold;
}

p.fluidity {
	padding: 50px 0;
	position: relative;
}

p#wide{
    display: none;
}

a, a:link, a:visited {
	color: lightblue;
}

a:hover, a:focus {
	color: white;
}

JavaScript

function toggleText(){
    var p = document.getElementById("wide");
    var vis = p.style.display;
    if(vis=="block"){
        p.style.display="none";
    }else{
        p.style.display="block";
    }
}