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 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.
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.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and 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 esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM 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.
<link href="http://www.proteusthemes.com/themes/webmarket-html/stylesheets/bootstrap.css" rel="stylesheet">
<link href="http://www.proteusthemes.com/themes/webmarket-html/stylesheets/responsive.css" rel="stylesheet">
<link href="http://www.proteusthemes.com/themes/webmarket-html/stylesheets/main.css" rel="stylesheet">
<link rel="stylesheet" href="http://www.proteusthemes.com/themes/webmarket-html/js/rs-plugin/css/settings.css" type="text/css"/>
<!-- jQuery UI -->
<link rel="stylesheet" href="http://www.proteusthemes.com/themes/webmarket-html/js/jquery-ui-1.10.3/css/smoothness/jquery-ui-1.10.3.custom.min.css" type="text/css"/>
<!-- Include jQuery -->
<script type="text/javascript" src="http://www.starplugins.com/sites/starplugins/js/jquery.js"></script>
<!-- Include KillerCarousel JavaScript -->
<script type="text/javascript" src="http://www.starplugins.com/sites/starplugins/js/killercarousel/killercarousel.js"></script>
<!-- Include KillerCarousel CSS -->
<link href="http://www.starplugins.com/sites/starplugins/js/killercarousel/killercarousel.css" type="text/css" rel="stylesheet" />
<!-- Various page styles. -->
<!-- Styles for the Carousel -->
<style type = "text/css">
</style>
<script type = "text/javascript">
</script>
<script type="text/javascript">
</script>
<div class="span12">
<ul id="myTab" class="nav nav-tabs">
<li class="active">
<a href="#tab-1" data-toggle="tab">Details</a>
</li>
<li class="">
<a href="#tab-2" data-toggle="tab">SIZING CHART</a>
</li>
<li>
<a href="#tab-3" data-toggle="tab">COMMENTS</a>
</li>
<li>
<a href="#tab-4" data-toggle="tab">SHIPPING DETAILS</a>
</li>
</ul>
<div class="tab-content">
<div class="fade tab-pane active in" id="tab-1">
<div id="wrapper">
<div class = "kc-wrap">
<!-- Carousel items follow -->
<div class="kc-item">
<a><img src="http://www.starplugins.com/images/starplugins/home-carousel-jetzoom.jpg" title ="Jet Zoom" alt = "Jet Zoom jQuery image zoom"
data-desc="Easy to use lens zoom for high resolution images.">
</a>
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image1.jpg" alt = "Salvator Mundi 1519">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image2.jpg" alt = "St. John the Baptist 1516">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image3.jpg" alt = "Lady with an Ermine 1490">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image4.jpg" alt = "St. Jerome in the Wilderness 1480">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image5.jpg" alt = "Head of a Woman 1508">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image6.jpg" alt = "St. John the Baptist 1516">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image7.jpg" alt = "The Virgin and Child with St Anne and St John the Baptist 1500">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image8.jpg" alt = "Madonna of the Yarnwinder 1507">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image9.jpg" alt = "The Virgin and Child with St. Anne 1508">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image10.jpg" alt = "Madonna of the Carnation 1480">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image11.jpg" alt = "La belle ferronnière 1496">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image12.jpg" alt = "Adoration of the Magi 1481">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image13.jpg" alt = "Portrait of a Musician 1490">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image14.jpg" alt = "Virgin of the Rocks 1486">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image15.jpg" alt = "Madonna of Laroque 1503">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image16.jpg" alt = "Benois Madonna 1478">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image17.jpg" alt = "Mona Lisa 1517">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image18.jpg" alt = "Portrait of a man in red chalk 1512">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image19.jpg" alt = "Ginevra de' Benci 1478">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image20.jpg" alt = "The Last Supper 1498">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image21.jpg" alt = "Annunciation 1475">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image22.jpg" alt = "The Battle of Anghiari 1505">
</div>
<div class="kc-item">
<img src="http://www.starplugins.com/kcimages/cropped-small/image23.jpg" alt = "Madonna Litta 1491">
</div>
</div>
</div>
</div>
<div class="fade tab-pane" id="tab-2">
<div id="page">
<div id="examples" class="block">
<h2>Examples</h2>
<div class="tab_container">
<p>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_101007642560Napoli__10.jpg" title="Calm Before The Storm (One Shoe Photography Ltd.)">
<img src="http://diana-russo.ru/pics200/userimages/article/Napoli_101007642560Napoli__10.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_101007642560Napoli__10.jpg" title="Calm Before The Storm (One Shoe Photography Ltd.)">
<img src="http://diana-russo.ru/pics200/userimages/article/Napoli_101007642560Napoli__10.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)">
<img src="http://diana-russo.ru/pics500/userimages/article/Napoli_061629356738Napoli__06.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_101007642560Napoli__10.jpg" title="Calm Before The Storm (One Shoe Photography Ltd.)">
<img src="http://diana-russo.ru/pics200/userimages/article/Napoli_101007642560Napoli__10.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_101007642560Napoli__10.jpg" title="Calm Before The Storm (One Shoe Photography Ltd.)">
<img src="http://diana-russo.ru/pics200/userimages/article/Napoli_101007642560Napoli__10.jpg" alt=""> </a>
<a class="fancybox" rel="gallery1" href="http://diana-russo.ru/pics500/userimages/article/Napoli_101007642560Napoli__10.jpg" title="Calm Before The Storm (One Shoe Photography Ltd.)">
<img src="http://diana-russo.ru/pics200/userimages/article/Napoli_101007642560Napoli__10.jpg" alt=""> </a>
</p>
</div>
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox({
openEffect : 'none',
closeEffect : 'none'
});
});
</script>
</div>
</div>
</div>
<div class="fade tab-pane" id="tab-3">
<p>
Etsy mixtape PBR banksy irony.
</p>
</div>
<div class="fade tab-pane" id="tab-4">
<p>
Etsy mixtape own.
</p>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<!-- Add jQuery library -->
<script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="http://fancyapps.com/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<!-- Add fancyBox main JS and CSS files -->
<script type="text/javascript" src="http://fancyapps.com/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="http://fancyapps.com/fancybox/source/jquery.fancybox.css?v=2.1.5" media="screen" />
<script src="http://www.proteusthemes.com/themes/webmarket-html/js/bootstrap.min.js"></script>
/* CSS for item wrapper */
.kc-item {
position:absolute;
width:188px;
height:250px;
}
/* CSS for images inside item wrapper */
.kc-item img {
position:absolute;
pointer-events: none; /* Make images non-selectable. */
width:100%; /* Make images expand to wrapper size (used in 2d modes). */
}
@media screen {
.str { color: #080 } /* string content */
.kwd { color: #008 } /* a keyword */
.com { color: #800 } /* a comment */
.typ { color: #606 } /* a type name */
.lit { color: #066 } /* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun, .opn, .clo { color: #660 }
.tag { color: #008 } /* a markup tag name */
.atn { color: #606 } /* a markup attribute name */
.atv { color: #080 } /* a markup attribute value */
.dec, .var { color: #606 } /* a declaration; a variable name */
.fun { color: red } /* a function name */
}
@media print, projection {
.str { color: #060 }
.kwd { color: #006; font-weight: bold }
.com { color: #600; font-style: italic }
.typ { color: #404; font-weight: bold }
.lit { color: #044 }
.pun, .opn, .clo { color: #440 }
.tag { color: #006; font-weight: bold }
.atn { color: #404 }
.atv { color: #060 }
}
/*
Misc.
*/
.txt {
width: 70%;
padding: 2px 4px;
}
.hidden {
display: none;
}
.meta {
margin: 0 0 10px 0;
font-size: 12px;
}
h2.title {
margin-bottom: -5px;
}
h2.title a {
text-decoration: none;
}
.tab_container a {
display: inline-block;
}
.tab_container a img {
display: block;
margin-bottom: 4px;
max-width: 200px;
max-height:100px;
}
/*
Layout
*/
#page {
margin: 0 auto;
max-width: 780px;
padding: 30px;
}
.tab_container {
clear: both;
overflow: hidden;
margin-bottom: 24px;
}
.tab_container p {
padding-left: 15px;
}
.tab_container ul {
padding-left: 35px;
}
.tab_container pre {
margin-top: 15px;
}
.tab_container td p {
padding-left: 0;
}
@media screen and (max-width: 480px) {
#nav p { float: left; }
#nav ul li { padding: 0 5px 0 0; }
#page { padding: 15px; }
h1 { margin-top: 20px; }
ul.tabs li { margin-bottom: 7px; }
ul.tabs li a { padding-left: 10px; padding-right:10px;}
}
$(function() {
$('.kc-wrap').KillerCarousel({
// Width of carousel.
width: 800,
// Item spacing in 3d (CSS3 3d) mode.
spacing3d: 120,
// Item spacing in 2d (no CSS3 3d) mode.
spacing2d:120,
// Path to images for shadows etc.
imagePath: "/sites/starplugins/js/killercarousel/",
showShadow: true,
showReflection: true,
// Looping mode.
infiniteLoop: true,
// Scale at 75% of parent element.
autoScale: 75,
showNavigation: true
});
});
Also see: Tab Triggers