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

              
                <h1>Detail and Summary</h1>

<h2>Read more about our products:</h2>

<section>
	<details open>
		<summary>ArcGIS Online</summary>
		<p>Embrace the power of interactive maps and location intelligence. Immediately start working with smart, data-driven styles and intuitive analysis tools, while sharing your insights with ease.</p>
	</details>

	<details>
		<summary>ArcGIS Pro</summary>
		<p>Esri’s next-gen 64-bit desktop GIS product is ArcGIS Pro. Technologically ahead of everything else on the market, ArcGIS Pro provides professional 2D and 3D mapping in an intuitive user interface. You can think of ArcGIS Pro as a big step forward—one that advances visualisation, analytics, image processing, data management, and integration.</p>
	</details>

	<details>
		<summary>ArcGIS Enterprise</summary>
		<p>ArcGIS provides contextual tools for mapping and spatial reasoning so you can explore data and share location-based insights. ArcGIS is a common visual language that inspires positive change, allowing you to quickly see where things happen and how everything connects.</p>
	</details>

	<details>
		<summary>Apps
		</summary>
		<p>On your desktop, mobile device or in your browser, jumpstart your workflows with ArcGIS Apps’ collection of integrated, location-based apps that are ready to work, wherever you do. Propelled by Esri’s world-leading mapping software, use the power of location to visualise data, improve coordination, achieve operational efficiencies and gain insight. Your authoritative data deserves a solution as specialised as the insight it provides – ensure that your teams, in the field or the office, are using the same data to reduce errors, boost productivity and save money</p>
	</details>
</section>
              
            
!

CSS

              
                /* Only for styling, not required for it to work */
body {
	background-color: lightsteelblue;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

h1 {
	font-size: 3rem;
	text-align: center;
}

h2 {
	font-size: 1.2rem;
	font-family: sans-serif;
	text-align: center;
}

details {
	margin-bottom: 20px;
	width: 100%;
	font-family: sans-serif;
}

details p {
	padding: 20px;
}

summary {
	padding: 20px;
	background-color: #9fb6ce;
	border: 1px solid #9fb6ce;
	outline: none;
}

summary:hover,
summary:focus {
	border: 1px solid lightslategray;
}

details[open] summary {
	background-color: lightslategray;
	border: 1px solid lightslategray;
}

details[open] {
	background: #fff;
}

section {
	max-width: 80%;
	width: 100%;
}

              
            
!

JS

              
                
              
            
!
999px

Console