HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
If the stylesheet you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!-- slider -->
<section id="rt-showcase-surround">
<div id="rt-showcase" class="slider-container rt-overlay-dark">
<div class="rt-container slider-container">
<div class="rt-grid-12 rt-alpha rt-omega">
<link rel="stylesheet" href="http://cssslider.com/sliders/demo-7/engine1/style.css">
<!--[if IE]><link rel="stylesheet" href="http://cssslider.com/sliders/demo-7/engine1/ie.css"><![endif]-->
<!--[if lte IE 9]><script type="text/javascript" src="http://cssslider.com/sliders/demo-7/engine1/ie.js"></script><![endif]-->
<script type="text/javascript" async="" src="https://www.google-analytics.com/ga.js"></script><script type="text/javascript" src="http://cssslider.com/sliders/demo-7/engine1/gestures.js"></script>
<div class="csslider1 autoplay cs_handle" style="top:-5px;">
<input name="cs_anchor1" id="cs_slide1_0" type="radio" class="cs_anchor slide">
<input name="cs_anchor1" id="cs_slide1_1" type="radio" class="cs_anchor slide">
<input name="cs_anchor1" id="cs_slide1_2" type="radio" class="cs_anchor slide">
<input name="cs_anchor1" id="cs_slide1_3" type="radio" class="cs_anchor slide">
<input name="cs_anchor1" id="cs_play1" type="radio" class="cs_anchor" checked="">
<input name="cs_anchor1" id="cs_pause1_0" type="radio" class="cs_anchor pause">
<input name="cs_anchor1" id="cs_pause1_1" type="radio" class="cs_anchor pause">
<input name="cs_anchor1" id="cs_pause1_2" type="radio" class="cs_anchor pause">
<input name="cs_anchor1" id="cs_pause1_3" type="radio" class="cs_anchor pause">
<ul>
<div style="width: 100%; visibility: hidden; font-size: 0px; line-height: 0;">
<img src="http://cssslider.com/sliders/demo-7/data1/images/rally395489_1280.jpg" style="width: 100%;">
</div>
<li class="num0 img">
<img src="http://cssslider.com/sliders/demo-7/data1/images/rally395489_1280.jpg" alt="CSS3 all images appearing slideshow example test questions" title="Hyundai i20">
</li>
<li class="num1 img">
<img src="http://cssslider.com/sliders/demo-7/data1/images/rally395494_1280.jpg" alt="jQuery vertical em embedphoto behind" title="Citroën DS3 WRC">
</li>
<li class="num2 img">
<img src="http://cssslider.com/sliders/demo-7/data1/images/rally395516_1280.jpg" alt="HTML5 full screen iphone thumbnail with images" title="Volkswagen Polo R WRC">
</li>
<li class="num3 img">
<img src="http://cssslider.com/sliders/demo-7/data1/images/rally395899_1280.jpg" alt="HTML continuous with controls download photo" title="Škoda Fabia Super 2000">
</li>
</ul>
<a class="cs_lnk" href="http://cssslider.com">HTML5 image carousel</a>
<div class="cs_description">
<label class="num0">
<span class="cs_title"><span class="cs_wrapper">Hyundai i20</span></span>
<br><span class="cs_descr"><span class="cs_wrapper">World rally championship</span></span>
</label>
<label class="num1">
<span class="cs_title"><span class="cs_wrapper">Citroën DS3 WRC</span></span>
<br><span class="cs_descr"><span class="cs_wrapper">Sébastien Loeb</span></span>
</label>
<label class="num2">
<span class="cs_title"><span class="cs_wrapper">Volkswagen Polo R WRC</span></span>
<br><span class="cs_descr"><span class="cs_wrapper">Sébastien Ogier</span></span>
</label>
<label class="num3">
<span class="cs_title"><span class="cs_wrapper">Škoda Fabia Super 2000</span></span>
<br><span class="cs_descr"><span class="cs_wrapper">Jan Kopecký</span></span>
</label>
</div>
<div class="cs_play_pause">
<label class="cs_play" for="cs_play1"><span><i></i></span></label>
<label class="cs_pause num0" for="cs_pause1_0"><span><i></i></span></label>
<label class="cs_pause num1" for="cs_pause1_1"><span><i></i></span></label>
<label class="cs_pause num2" for="cs_pause1_2"><span><i></i></span></label>
<label class="cs_pause num3" for="cs_pause1_3"><span><i></i></span></label>
</div>
<div class="cs_arrowprev">
<label class="num0" for="cs_slide1_0"><span><i></i></span></label>
<label class="num1" for="cs_slide1_1"><span><i></i></span></label>
<label class="num2" for="cs_slide1_2"><span><i></i></span></label>
<label class="num3" for="cs_slide1_3"><span><i></i></span></label>
</div>
<div class="cs_arrownext">
<label class="num0" for="cs_slide1_0"><span><i></i></span></label>
<label class="num1" for="cs_slide1_1"><span><i></i></span></label>
<label class="num2" for="cs_slide1_2"><span><i></i></span></label>
<label class="num3" for="cs_slide1_3"><span><i></i></span></label>
</div>
<div class="cs_bullets">
<label class="num0" for="cs_slide1_0">
<span class="cs_point"></span>
<span class="cs_thumb"><img src="http://cssslider.com/sliders/demo-7/data1/tooltips/rally395489_1280.jpg" alt="HTML template fullscreen download responsive" title="Hyundai i20"></span>
</label>
<label class="num1" for="cs_slide1_1">
<span class="cs_point"></span>
<span class="cs_thumb"><img src="http://cssslider.com/sliders/demo-7/data1/tooltips/rally395494_1280.jpg" alt="Bootstrap buttons zoom control slider mobile ie disable" title="Citroën DS3 WRC"></span>
</label>
<label class="num2" for="cs_slide1_2">
<span class="cs_point"></span>
<span class="cs_thumb"><img src="http://cssslider.com/sliders/demo-7/data1/tooltips/rally395516_1280.jpg" alt="Responsive banner with video slider vertical with gallery" title="Volkswagen Polo R WRC"></span>
</label>
<label class="num3" for="cs_slide1_3">
<span class="cs_point"></span>
<span class="cs_thumb"><img src="http://cssslider.com/sliders/demo-7/data1/tooltips/rally395899_1280.jpg" alt="jQuery image div text slider text example download" title="Škoda Fabia Super 2000"></span>
</label>
</div>
<div class="cs_gestures"><div style="transform: translate3d(-2880px, 0px, 0px); transition: transform 111.563ms linear;"><img src="http://cssslider.com/sliders/demo-7/data1/images/rally395899_1280.jpg" alt="HTML continuous with controls download photo" title="Škoda Fabia Super 2000" class="cs_first_img"><img src="http://cssslider.com/sliders/demo-7/data1/images/rally395489_1280.jpg" alt="CSS3 all images appearing slideshow example test questions" title="Hyundai i20"><img src="http://cssslider.com/sliders/demo-7/data1/images/rally395494_1280.jpg" alt="jQuery vertical em embedphoto behind" title="Citroën DS3 WRC"><img src="http://cssslider.com/sliders/demo-7/data1/images/rally395516_1280.jpg" alt="HTML5 full screen iphone thumbnail with images" title="Volkswagen Polo R WRC"><img src="http://cssslider.com/sliders/demo-7/data1/images/rally395899_1280.jpg" alt="HTML continuous with controls download photo" title="Škoda Fabia Super 2000"><img src="http://cssslider.com/sliders/demo-7/data1/images/rally395489_1280.jpg" alt="CSS3 all images appearing slideshow example test questions" title="Hyundai i20" class="cs_last_img"></div></div></div>
</div>
<div class="clear"></div>
</div>
</div>
</section>
<!-- /slider -->
<section id="rt-main-surround"><div id="rt-transition">
<div id="rt-mainbody-surround">
<div id="rt-top" class="rt-overlay-light">
<div class="rt-container hide-pointer">
<div class="rt-grid-12 rt-alpha rt-omega">
<div class="rt-block fp-top rt-center rt-big-title">
<div class="module-surround">
<div class="module-content"></div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<!-- demos -->
<div id="rt-utility" class="rt-overlay-light">
<div class="rt-container">
<div class="rt-grid-12 rt-alpha rt-omega">
<div id="demos" class="rt-block fp-utility rt-title-center rt-big-title">
<div class="module-title "><h2 class="title"><span>Live Demos</span></h2></div>
<div class="module-surround">
<div class="module-content">
<div class="sprocket-mosaic">
<div class="sprocket-mosaic-overlay"><div class="css-loader-wrapper"><div class="css-loader"></div></div></div>
<ul class="sprocket-mosaic-container sprocket-mosaic-columns-4">
<li>
<div class="sprocket-mosaic-item">
<div style="display: none;"></div>
<div class="sprocket-padding">
<div class="sprocket-mosaic-image-container">
<a href="http://cssslider.com/html5-slider-20.html">
<img src="http://cssslider.com/sliders/demo-20/thumb.jpg" alt="HTML5 Slider css3 " class="sprocket-mosaic-image">
<span class="sprocket-mosaic-link-text">HTML5 Slider</span>
<span class="sprocket-mosaic-hover"></span>
<span class="sprocket-mosaic-hovercontent" data-content="View Demo"></span>
</a>
</div>
<div class="sprocket-mosaic-text"><!-- text --></div>
</div>
</div>
</li>
<li>
<div class="sprocket-mosaic-item">
<div style="display: none;"></div>
<div class="sprocket-padding">
<div class="sprocket-mosaic-image-container">
<a href="http://cssslider.com/wordpress-slider-15.html">
<img src="http://cssslider.com/sliders/demo-15/thumb.jpg" alt="Wordpress Slider css3 slideshow " class="sprocket-mosaic-image">
<span class="sprocket-mosaic-link-text">Wordpress Slider</span>
<span class="sprocket-mosaic-hover"></span>
<span class="sprocket-mosaic-hovercontent" data-content="View Demo"></span>
</a>
</div>
<div class="sprocket-mosaic-text"><!-- text --></div>
</div>
</div>
</li>
<li>
<div class="sprocket-mosaic-item">
<div style="display: none;"></div>
<div class="sprocket-padding">
<div class="sprocket-mosaic-image-container">
<a href="http://cssslider.com/bootstrap-slider-10.html">
<img src="http://cssslider.com/sliders/demo-10/thumb.jpg" alt="Bootstrap Slider bootstrap slideshow " class="sprocket-mosaic-image">
<span class="sprocket-mosaic-link-text">Bootstrap Slider</span>
<span class="sprocket-mosaic-hover"></span>
<span class="sprocket-mosaic-hovercontent" data-content="View Demo"></span>
</a>
</div>
<div class="sprocket-mosaic-text"><!-- text --></div>
</div>
</div>
</li>
<li>
<div class="sprocket-mosaic-item">
<div style="display: none;"></div>
<div class="sprocket-padding">
<div class="sprocket-mosaic-image-container">
<a href="http://cssslider.com/image-gallery-5.html">
<img src="http://cssslider.com/sliders/demo-5/thumb.jpg" alt="Image Gallery jquery " class="sprocket-mosaic-image">
<span class="sprocket-mosaic-link-text">Image Gallery</span>
<span class="sprocket-mosaic-hover"></span>
<span class="sprocket-mosaic-hovercontent" data-content="View Demo"></span>
</a>
</div>
<div class="sprocket-mosaic-text"><!-- text --></div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<!-- /demos -->
Also see: Tab Triggers