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.
<footer>
<div class="footer-gray">
<div class="footer-custom">
<div class="footer-lists">
<div class="footer-list-wrap">
<h6 class="ftr-hdr">Order Toll Free</h6>
<ul class="ftr-links-sub">
<li>800-952-5592</li>
</ul>
<h6 class="ftr-hdr">International</h6>
<ul class="ftr-links-sub">
<li><a href="http://www.art.fr" rel="nofollow">France</a></li>
<li><a href="https://www.art.co.uk" rel="nofollow">United Kingdom</a></li>
</ul>
</div>
<!--/.footer-list-wrap-->
<div class="footer-list-wrap">
<h6 class="ftr-hdr">Customer Service</h6>
<ul class="ftr-links-sub">
<li><a href="/help/talktous.html" rel="nofollow">Contact Us</a></li>
<li><a href="/help/placingorders.html" rel="nofollow">Ordering</a></li>
<li><a href="/help/shipping.html" rel="nofollow">Shipping & Delivery</a></li>
<li><a href="/help/shippingreturns.html" rel="nofollow">Returns</a></li>
<li><a href="/help/international-shipping.html" rel="nofollow">International Orders</a></li>
<li><a href="/~/egift-cards/" rel="nofollow">Gift Cards</a></li>
<li><a href="/help/faq.html" rel="nofollow">FAQs</a></li>
</ul>
</div>
<div class="footer-list-wrap">
<h6 class="ftr-hdr">About Art.com</h6>
<ul class="ftr-links-sub">
<li><a href="/asp/aboutus/default-asp/_/posters.htm" rel="nofollow">Our Company</a></li>
<li><a href="http://corporate.art.com/careers" rel="nofollow">Careers</a></li>
<li><a href="/asp/landing/artistrising" rel="nofollow">Artist Rising</a></li>
<li><a href="/~/art-for-business" rel="nofollow">Business & Trade Sales</a></li>
<li><a href="http://affiliates.art.com/index.aspx" rel="nofollow">Affiliate Program</a></li>
<li><a href="/catalog" rel="nofollow"><strong>Shop Our Catalog</strong></a></li>
<li><a href="http://blog.art.com" rel="nofollow">ART.COM BLOG</a></li>
</ul>
</div>
<!--/.footer-list-wrap-->
<div class="footer-list-wrap">
<h6 class="ftr-hdr">My Account</h6>
<ul class="ftr-links-sub">
<art:content rule="!loggedin">
<li class="ftr-Login"><span class="link login-trigger">Access My Account</span></li>
<li><span class="link" onclick="link('/asp/secure/your_account/track_orders-asp/_/posters.htm')">Track My Order</span></li>
</art:content>
<art:content rule="loggedin">
<li class="ftr-Login"><span class="link ftr-access-my-account">Access My Account</span></li>
<li><span class="link" onclick="window.location.href = getProfileKey() + '?pagetype=oh';">Track My Order</span></li>
</art:content>
</ul>
</div>
<!--/.footer-list-wrap-->
</div>
<!--/.footer-lists-->
<div class="footer-email">
<h6 class="ftr-hdr">Sign up for exclusive offers and inspiration</h6>
<div id="ftr-email" class="ftr-email-form">
<form id="ftrEmailForm" method="post" action="http://em.art.com/pub/rf">
<div class="error">Please enter a valid email address</div>
<input type="text" name="email_address_" id="ftrEmailInput" class="input" placeholder="Enter email address" />
<!--
-->
<input type="submit" class="button" value="SUBMIT" />
<input type="hidden" name="country_iso2" value="">
<input type="hidden" name="language_iso2" value="en">
<input type="hidden" name="site_domain" value="art.com">
<input type="hidden" name="email_acq_source" value="01-000001">
<input type="hidden" name="email_acq_date" value="" id="ftr-email-date">
<input type="hidden" name="brand_id" value="ART">
<input type="hidden" name="_ri_" value="X0Gzc2X%3DWQpglLjHJlYQGnp51yrMf2qXdC9tjU8pzgMtwfYzaVwjpnpgHlpgneHmgJoXX0Gzc2X%3DWQpglLjHJlYQGnyLSq2fzdkuzdzglHMsUhgeNzaSgkk">
</form>
</div>
<!--/.ftr-email-form-->
<div class="ftr-email-privacy-policy"></div>
</div>
<!--/.footer-email-->
<div class="footer-social">
<h6 class="ftr-hdr">Follow Us</h6>
<ul>
<li>
<a href="https://www.facebook.com/art.com" title="Facebook" onclick="_gaq.push(['_trackSocial', 'Facebook', 'Follow', 'Footer', 'undefined', 'True']);">
<img width="24" height="24" alt="Like us on Facebook" src="http://cache1.artprintimages.com/images/jump_pages/rebrand/footer/fb.png">
</a>
</li>
<li>
<a href="https://plus.google.com/108089796661280870153" title="Google+" onclick="_gaq.push(['_trackSocial', 'GooglePlus', 'Follow', 'Footer', 'undefined', 'True']);">
<img width="24" height="24" alt="Follow us on Google+" src="http://cache1.artprintimages.com/images/jump_pages/rebrand/footer/gplus.png">
</a>
</li>
<li>
<a href="https://pinterest.com/artdotcom/" target="_blank">
<img width="24" height="24" alt="Follow us on Pinterest" src="http://cache1.artprintimages.com/images/jump_pages/rebrand/footer/pin-badge.png">
</a>
</li>
<li>
<a target="_blank" href="http://instagram.com/artdotcom/">
<img width="24" height="24" alt="Follow us on Instagram" src="http://cache1.artprintimages.com/images/jump_pages/rebrand/footer/instagram-badge.png">
</a>
</li>
<li>
<a href="https://www.twitter.com/artdotcom" title="Twitter" onclick="_gaq.push(['_trackSocial', 'Twitter', 'Follow', 'Footer', 'undefined', 'True']);">
<img width="67" alt="Follow us on Twitter" src="http://cache1.artprintimages.com/images/jump_pages/rebrand/footer/twitter.png">
</a>
</li>
</ul>
</div>
<!--/.footer-social-->
<div class="footer-legal">
<p>© Art.com Inc. All Rights Reserved. | <a href="/help/privacy-policy.html" rel="nofollow">Privacy Policy</a> | <a href="/help/terms-of-use.html" rel="nofollow">Terms of Use</a> | <a href="/help/terms-of-sale.html" rel="nofollow">Terms of Sale</a></p>
<p>Art.com, You+Art, and Photos [to] Art are trademarks or registered trademarks of Art.com Inc.</p>
<p>Various aspects of this website are covered by issued US patent No. 7,973,796 and other pending patent applications.</p>
</div>
<!--/.footer-legal-->
<div class="footer-payment">
<ul>
<li class="ftr-stella">
<span title="Stella Service" onclick="openLink('http://www.stellaservice.com/profile/Art.com/')"></span>
</li>
<li>
<span onclick="clickTrack(); return false;" onmouseover="this.style.cursor='pointer'"><img border="0" alt="HACKER SAFE certified sites prevent over 99.9% of hacker crime." src="https://images.scanalert.com/meter/www.art.com/31.gif"></span>
</li>
<li class="ftr-bbb">
<span title="BBB" onclick="openLink('http://www.bbb.org/raleigh-durham/business-reviews/art-suppliers/artcom-inc-in-raleigh-nc-5001914')"></span>
</li>
</ul>
</div>
<!--/.footer-payment-->
</div>
<!--/.footer-custom-->
</div>
<!--/.footer-gray-->
</footer>
body,
html {
margin: 0;
padding: 0;
}
.hidden {
display: none;
}
.footer-gray {
background-color: #EFEFEF;
width: 100%;
}
.footer-custom {
color: #888;
font: normal normal 12px/1.4 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
max-width: 1008px;
box-sizing: border-box;
margin: 0 auto;
padding: 24px;
}
.footer-custom:after {
display: table;
clear: both;
content: "";
}
.footer-lists:after {
display: table;
clear: both;
content: "";
}
.ftr-hdr {
color: #000;
font: 22px/1.4 'BebasNeueRegular', BebasNeue, 'Bebas Neue', Arial, sans-serif;
margin: 1em 0 0;
}
@media only screen and (min-width: 768px) {
.ftr-hdr {
font-size: 18px;
}
}
.footer-list-wrap {
width: 50%;
float: left;
box-sizing: border-box;
}
@media only screen and (min-width: 568px) {
.footer-list-wrap {
width: 33.3333%;
}
}
@media only screen and (min-width: 768px) {
.footer-list-wrap {
width: 25%;
}
}
.ftr-links-sub {
padding: 0;
margin: 0;
}
.ftr-links-sub:after {
display: table;
clear: both;
content: "";
}
.ftr-links-sub li {
display: block;
list-style-type: none;
margin: 0;
padding: 3px 0;
color: #888;
font: normal normal 12px "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
text-transform: uppercase;
/*width: 150px;*/
}
.footer-custom a,
.footer-custom a:link,
.footer-custom a:visited,
.ftr-links-sub li .link {
text-decoration: none;
color: #888;
padding: 5px 0;
display: block;
}
.footer-custom .footer-legal a {
display: inline;
}
.footer-custom a:hover,
.footer-custom a:active,
.ftr-links-sub li .link:hover {
text-decoration: underline;
color: #888;
cursor: pointer;
}
@media only screen and (min-width: 768px) {
.footer-custom a, .footer-custom a:link, .footer-custom a:visited, .ftr-links-sub li .link {
padding: 0;
}
}
/* BEGIN EMAIL CAPTURE STYLES*/
.footer-email {
text-align: center;
}
#ftrEmailForm {
height: 44px;
}
#ftrEmailForm .error {
display: none;
color: red;
text-align: left;
}
#ftrEmailForm #ftrEmailInput {
background: none repeat scroll 0 0 #FFF;
border: 1px solid #D6D6D6;
box-sizing: border-box;
color: #888;
float: left;
font: normal normal 14px/1.4 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
padding: 5px;
width: 70%;
height: 100%;
}
#ftrEmailForm #ftrEmailInput:hover {
border: 1px solid #888;
}
#ftrEmailForm #ftrEmailInput:focus {
border: 1px solid #ef9223;
outline: #ef9223 auto 5px;
}
#ftrEmailForm .button {
width: 30%;
height: 100%;
padding: 5px;
float: left;
border: 1px solid #DFDFDF;
box-sizing: border-box;
color: #000;
font: normal bold 18px/1 BebasFamily, BebasNeueRegular, "Bebas Neue", Helvetica, Arial, sans-serif;
text-align: center;
text-transform: uppercase;
background: #FFF;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod…EiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #e1e1e1));
background: -webkit-linear-gradient(top, white 0, #e1e1e1 100%);
background: -moz-linear-gradient(top, white 0, #e1e1e1 100%);
background: -ms-linear-gradient(top, white 0, #e1e1e1 100%);
background: -o-linear-gradient(top, white 0, #e1e1e1 100%);
background: linear-gradient(to bottom, white 0, #e1e1e1 100%);
cursor: pointer;
vertical-align: middle;
outline: none;
}
#ftrEmailForm .button:hover,
#ftrEmailForm .button:active {
background: black;
color: #FFF;
outline: none;
}
/* BEGIN SOCIAL STYLES*/
.footer-social {
text-align: center;
}
.footer-social ul {
padding: 0;
display: inline-block;
list-style-type: none;
}
.footer-social ul:after {
display: table;
clear: both;
content: "";
}
.footer-social li {
float: left;
margin: 0 15px 0 0;
padding: 0;
}
@media only screen and (min-width: 768px) {
.footer-lists {
width: 100%;
}
.footer-email {
width: 50%;
float: left;
text-align: left;
}
.footer-social {
width: 45%;
margin-left: 5%;
float: left;
text-align: left;
}
}
@media only screen and (min-width: 1008px) {
.footer-lists {
width: 66.6666%;
float: left;
}
.footer-email {
width: 33.3333%;
}
.footer-social {
width: 33.3333%;
float: right;
margin-left: 0;
}
}
.footer-legal {
padding: 15px 0 0;
clear: left;
}
.footer-payment {
text-align: center;
}
@media only screen and (min-width: 768px) {
.footer-legal {
width: 66.6666%;
float: left;
}
.footer-payment {
width: 33.3333%;
float: left;
}
}
@media only screen and (min-width: 1008px) {
.footer-payment {
text-align: left;
}
}
.footer-payment ul {
padding: 0;
display: inline-block;
list-style-type: none;
}
.footer-payment ul li {
display: inline-block;
margin: 0 6px;
}
@media only screen and (min-width: 1008px) {
.footer-payment ul li.ftr-stella {
margin-left: 0;
}
}
.ftr-bbb span,
.ftr-stella span {
background-image: url("http://cache1.artprintimages.com/images/jump_pages/rebrand2/images/subnav2.png");
background-repeat: no-repeat;
background-color: transparent;
cursor: pointer;
display: inline-block;
height: 36px;
margin: 0;
padding: 0;
}
.ftr-bbb span {
background-position: -339px -8px;
width: 96px;
}
.ftr-stella span {
background-position: -339px -107px;
width: 57px;
}
Also see: Tab Triggers