Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="acordeon">
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item1">
				<label for="item1" class="acordeon__titulo">Título 1</label>
				<p class="acordeon__contenido">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis quod dolorem nam iste laudantium doloremque perspiciatis assumenda, corporis minima, eligendi molestiae dolorum facere iure cum excepturi inventore expedita magni dolores.</p>
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item2">
				<label for="item2" class="acordeon__titulo">Título 2</label>
				<p class="acordeon__contenido">Accusantium et vel ipsam accusamus, quidem. Quisquam, sunt, alias doloribus fugiat accusantium dolores voluptatibus. Facere, enim, voluptatibus. Odio suscipit, possimus laboriosam debitis alias, nemo deleniti eius, recusandae architecto provident sit?</p>
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item3">
				<label for="item3" class="acordeon__titulo">Título 3</label>
				<p class="acordeon__contenido">Adipisci iure temporibus quae voluptate nemo ipsum aperiam ipsa ratione magni, quibusdam consequatur tempore illo, molestias illum eligendi labore necessitatibus cum minima. Et voluptatibus quos molestias dignissimos, officia minus, maxime.</p>
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item4">
				<label for="item4" class="acordeon__titulo">Título 4</label>
				<p class="acordeon__contenido">Quo voluptate deleniti, maiores natus, voluptas veniam, omnis fugit recusandae dignissimos dolores sequi quibusdam explicabo velit eligendi suscipit quod? Totam optio error odit, dicta facere et quae sint natus quaerat.</p>


                * {
	box-sizing: border-box;

.acordeon input {
	display: none;

.acordeon__titulo {
	display: block;
	padding: 15px;
	background: crimson;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	border-bottom: 1px solid #fff;
.acordeon__titulo:hover {
	background: rgba(220, 20, 60, 0.8);

.acordeon__contenido {
	height: 0;
	overflow: hidden;
	margin: 0;
	transition: all 0.5s;

.acordeon input:checked ~ .acordeon__contenido{
	height: auto;
	margin: 15px 0;