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

              
                <!--
Visit for browser support:
https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior

Currently Firefox & Chrome
-->

<div class="rough">
	
	<a name="rough-top"></a>
	
	<pre><code>scroll-behavior: auto</code></pre>
	
	<p><a href="#rough-bottom">Take me to the bottom!</a></p>
	
  <p>A LambdaTest exclusive platform that is guaranteed faster than any other cloud grid offering.</p>
  
	<p>Deliver unparalleled digital experience with our next-gen
AI-powered testing cloud platform. Ensure exceptional user
experience across all devices and browsers.</p>

<p>Execute automation testing for OTT applications on Apple TV, Roku TV and Amazon Fire TV with LambdaTest cloud.</p>

<p>Blazing fast AI-powered test execution & orchestration on cloud that will beat your local test execution speeds.</p>

<p>Run your Selenium test automation scripts across online Selenium Grid of desktop, Android and iOS mobile browsers.</p>

<p>Develop, test, and deliver faster every time with automated cross browser testing using LambdaTest online Automation Browser Testing Grid.</p>

<p>Test your native hybrid of web mobile apps using LambdaTest’s online real device cloud and virtual mobile device platform of emulators and simulators.</p>
	
	<p>Eliminating your in-house device labs and bring high scalability to your mobile app testing.</p>

<p>You can choose from a wide range of Windows and Mac operating systems, along with all legacy and latest browsers.</p>

<p>Also test your website or web app on latest mobile browsers with Android and iOS mobile operating systems.</p>

<p>Helping you build trust with your customers is important to us and so is building trust with you. Having all the essential security, compliance and legal matters in a place is critical in protecting and the work we share.</p>

	
	<p><a id="rough-bottom" href="#rough-top">Back to the top!</a></p>
	
</div>

<div class="smooth">
	
	<a name="smooth-top"></a>
	
	<pre><code>scroll-behavior: smooth</code></pre>
	
	<p><a href="#smooth-bottom">Take me to the bottom!</a></p>
	
	<p>A LambdaTest exclusive platform that is guaranteed faster than any other cloud grid offering.</p>
  
	<p>Deliver unparalleled digital experience with our next-gen
AI-powered testing cloud platform. Ensure exceptional user
experience across all devices and browsers.</p>

<p>Execute automation testing for OTT applications on Apple TV, Roku TV and Amazon Fire TV with LambdaTest cloud.</p>

<p>Blazing fast AI-powered test execution & orchestration on cloud that will beat your local test execution speeds.</p>

<p>Run your Selenium test automation scripts across online Selenium Grid of desktop, Android and iOS mobile browsers.</p>

<p>Develop, test, and deliver faster every time with automated cross browser testing using LambdaTest online Automation Browser Testing Grid.</p>

<p>Test your native hybrid of web mobile apps using LambdaTest’s online real device cloud and virtual mobile device platform of emulators and simulators.</p>
	
	<p>Eliminating your in-house device labs and bring high scalability to your mobile app testing.</p>

<p>You can choose from a wide range of Windows and Mac operating systems, along with all legacy and latest browsers.</p>

<p>Also test your website or web app on latest mobile browsers with Android and iOS mobile operating systems.</p>

<p>Helping you build trust with your customers is important to us and so is building trust with you. Having all the essential security, compliance and legal matters in a place is critical in protecting and the work we share.</p>
	
	<p><a id="smooth-bottom" href="#smooth-top">Back to the top!</a></p>
	
</div>
              
            
!

CSS

              
                body {
  font-family: sans-serif;
	padding:2em;
	box-sizing:border-box;
	display:grid;
	grid-auto-flow:column;
	grid-gap:2em;
}

div {
	overflow:auto;
	border:2px solid #eee;
	padding:0 2em 2em 2em;
	background:#fff;
}

.smooth {
	scroll-behavior: smooth;
}

a {
	color: blue !important;
}

a[name] {
	display:block;
	padding-top:2em;
}

pre {
	background:#eee;
	padding:1em;
	margin-top:0;
	margin-bottom:2em;
}

html, body {
	height:100%;
	overflow:hidden;
}
              
            
!

JS

              
                
              
            
!
999px

Console