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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                <h1>CSS Media Query Range Context Test</h1>

<p id="output">Does your browser support <a href="" target="_top">Media Query Range Contexts</a>?</p>

<h2>Media Query Range Contexts?</h2>

<p>A media feature like <code>width</code> can take its value from a range. We prefix these with <code>min-</code> or <code>max-</code> to express <em>"minimum condition"</em> or <em>"maximum condition"</em> constraints. In <a href="" target="_top">CSS Media Queries Level 4</a> these type of Media Features can now be written as a <em>“range context”</em>, which uses ordinary mathematical comparison operators.</p>

<p>A comparison:</p>
<pre><code>/* Classic Way */
@media (min-width: 300px) and (max-width: 750px) {

/* Rewritten using a Range Context */
@media (300px &lt;= width &lt;= 750px) {


                #output::after {
	content: "❌ Your browser does not support Media Query Range Contexts";
	background-color: #ff00002b;

	display: block;
	margin: 1em 0;
	padding: 1em;
	border: 1px solid #ccc;

@media (width >= 0) {
	#output::after {
		content: "✅ Your browser supports Media Query Range Contexts";
		background-color: #00ff002b;

pre {
	border: 1px solid #dedede;
	padding: 1em;
	background: #f7f7f7;
	font-family: "Courier 10 Pitch", Courier, monospace;
	overflow-x: auto;

html {
	max-width: 76ch;
	padding: 3rem 2rem;
	margin: auto;
	line-height: 1.5;
	font-size: 1.25rem;
body {
	margin: 0;
	padding: 0;
a:visited {
	color: blue;