Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                <div class="toggles">
	<details open>
		<summary>What is Envato Tuts+? </summary>
		<div>
			<p>Envato Tuts+ publishes video courses, eBooks, and written tutorials to help you learn creative and technical skills. You can read more about Envato Tuts+ and how we can help you learn over on our About page.</p>
		</div>
	</details>
	<details>
		<summary>Can I write for Envato Tuts+?</summary>
		<div>
			<p>We're always on the look-out for talented people who'd like to teach their skills. Visit our Teach at Envato Tuts+ page to learn more.</p>
		</div>
	</details>
	<details>
		<summary>Who writes and publishes the tutorials and courses I see on Envato Tuts+?</summary>
		<div>
			<p>Our team of editors ensures that each topic on Envato Tuts+ is full of up-to-date, inspirational and educational resources, from instructors who have experience and expertise in their fields. All the courses and tutorials published on Envato Tuts+ are original material, with a focus on teaching you practical and relevant skills.</p>
		</div>
	</details>
	<details>
		<summary>Where do I find courses I’ve started watching previously?</summary>
		<div>
			<p>Your My Courses page displays all the courses you’ve watched, so you can find them quickly and keep on learning!</p>
		</div>
	</details>
	<details>
		<summary>Can I download project files for a course?</summary>
		<div>
			<p>Yes, if you have access to a course (via purchase or any subscription plan), then you can download the relevant project source files.</p>
		</div>
	</details>	
</div>
              
            
!

CSS

              
                * {
	box-sizing: border-box;
}

body {
	display: flex;
	justify-content: center;
	padding: 4rem;
}

.toggles {
	font-family: "Source Sans Pro", Arial, sans-serif;
	color: #b5b5b5;
	font-size: 18px;
	width: 75%;

	details {
		margin-bottom: 0.75rem;

		> div {
			margin-left: 2rem;
			padding: 1rem 0;
		}

		summary {
			border: 1px solid rgba(0, 0, 0, 0.1);
			box-sizing: border-box;
			box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.05);
			border-radius: 8px;
			padding: 1rem 2rem;
			font-weight: 600;
			cursor: pointer;
			list-style: none; // remove the default triangle
			outline: none; // for chrome
			position: relative;
			transition: color 0.2s;

			&::-webkit-details-marker {
				display: none; // for chrome
			}

			&::before {
				content: "\f078";
				font-family: "Font Awesome 5 Free";
				position: absolute;
				top: 50%;
				right: 2rem;
				transform: translateY(-50%);
			}

			&:hover {
				color: #4d4d4d;
			}
		}
	}

	details[open] {
		color: #4d4d4d;

		summary::before {
			content: "\f077";
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console