<div class="example-container">
	<label for='checkbox'>
		Click me
	</label>
	<input id='checkbox' type='checkbox' />
	<div class="example">
		Hello 👋	
	</div>
</div>
.example {
	position: relative;
	width: 200px;
	height: 200px;
	border: solid 4px #4b4b4b;
	border-radius: 4px;
	margin-bottom: 20px;
	padding: 10px;
	display: none;
	font-family: sans-serif;
	font-size: 32px;
}

label {
	padding: 10px;
	background: #4b4b4b;
	color: white;
	border-radius: 4px;
	font-family: sans-serif;
	font-size: 32px;
	display: inline-block;
	margin-bottom: 20px;
	cursor: pointer;
}

input[type=checkbox] {
	display: none;
}

input[type=checkbox]:checked + .example {
	display: block;
}

/* Exemple page styles */

* {
	box-sizing: border-box;
}

body {
	padding: 50px;
	color: #4b4b4b;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.