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.
<div class="container two-col-example">
<div class="row">
<div class="col-lg-6 col-xs-12">
<h2>Popular Topics</h2>
<div class="card-deck mb-1 text-center">
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-shield-alt fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Password Help</h4>
<p class="mt-3 mb-4">Reset, change, or unlock your NT/Login password.</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-cloud fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Cloud Conferencing Support</h4>
<p class="mt-3 mb-4">Setup or schedule a Webex or other video conference.</p>
</div>
</div>
</div>
<div class="card-deck mb-1 text-center">
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-laptop fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Order New Hardware</h4>
<p class="mt-3 mb-4">
Order a new laptop, phone, or other hardware.
</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-calendar-alt fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Meeting Help</h4>
<p class="mt-3 mb-4">Learn how to schedule a meeting or reserve a conference room.</p>
</div>
</div>
</div>
<div class="card-deck mb-1 text-center">
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-print fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Printer Help</h4>
<p class="mt-3 mb-4">
Get help accessing a network printer or request service.
</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-podcast fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Request VPN Access</h4>
<p class="mt-3 mb-4">Setup Comcast VPN on your company issued device.</p>
</div>
</div>
</div>
<div class="main-button"><button type="button" class="btn btn-primary com-button">See More Topics</button></div>
</div>
<div class="col-lg-6 col-xs-12">
<h2>Announcements</h2>
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start list-com-announcements">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Make Your Mobile Device More Secure</h5>
<!-- <small>3 days ago</small> -->
</div>
<p class="mb-1">With great power (of mobile devices), there must also come great responsibility. Three things you can do now to protect yourself and Comcast.</p>
</a>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start list-com-announcements">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Upgrades to Web Security: BLUE COAT</h5>
<!-- <small class="text-muted">3 days ago</small> -->
</div>
<p class="mb-1">On Tuesday morning February 13, we will complete a network change that will redirect all web traffic...</p>
</a>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start list-com-announcements">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Multi-Factor Authentication (MFA) for Outlook Web Access (OWA)</h5>
<!-- <small class="text-muted">3 days ago</small> -->
</div>
<p class="mb-1">Multi-Factor Authentication (MFA) for Outlook Web Access (OWA), also known as “webmail,”...</p>
</a>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<!-- <small class="text-muted">3 days ago</small> -->
</div>
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
</a>
</div>
<div class="main-button"><button type="button" class="btn btn-primary com-button">See All Announcements & Alerts</button></div>
</div>
</div>
</div>
<div class="container">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-shield-alt fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Password Help</h4>
<p class="mt-3 mb-4">Reset, change, or unlock your NT/Login password.</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-cloud fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Cloud Conferencing Support</h4>
<p class="mt-3 mb-4">Setup or schedule a Webex or other video conference.</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-laptop fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Order New Hardware</h4>
<p class="mt-3 mb-4">
Order a new laptop, phone, or other hardware.
</p>
</div>
</div>
</div>
</div>
<div class="container">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-shield-alt fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Password Help</h4>
<p class="mt-3 mb-4">Reset, change, or unlock your NT/Login password.</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-cloud fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Cloud Conferencing Support</h4>
<p class="mt-3 mb-4">Setup or schedule a Webex or other video conference.</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-laptop fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Order New Hardware</h4>
<p class="mt-3 mb-4">
Order a new laptop, phone, or other hardware.
</p>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-body">
<i class="fas fa-calendar-alt fa-4x com-icon"></i>
<h4 class="card-title pricing-card-title">Meeting Help</h4>
<p class="mt-3 mb-4">Learn how to schedule a meeting or reserve a conference room.</p>
</div>
</div>
</div>
</div>
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900');
body{
background: #F2F2F2;
color: #303030;
margin-top:3em;
font-family: 'Roboto', sans-serif;
}
.two-col-example{
margin-bottom:10em;
}
h2{
margin-bottom: 1em;
text-align:center;
font-size: 40px;
font-weight: 300;
}
h4{
font-weight: 400;
font-size: 18px;
}
h5{
color: #1F6F9A;
font-weight: 400;
}
p{
font-weight: 300;
font-size: 14px;
}
.com-button{
background-color: #1F6F9A;
font-weight: 300;
font-size: 18px;
padding: .7em 2em;
border-radius: 100px;
}
.main-button{
margin-top: 1em;
text-align: center;
}
.card{
border-radius:3px;
border: 1px solid #D1D1D1;
}
.card-deck .card {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-ms-flex: 1 0 0%;
flex: 1 0 0%;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin-right: 6px;
margin-bottom: 0;
margin-left: 6px;
}
.com-icon{
margin-bottom: .35em;
color: #1F6F9A;
}
.list-group-item {
position: relative;
display: block;
padding: 1rem .9em;
margin-bottom: .5em;
background-color: transparent;
/* border: 1px solid rgba(0, 0, 0, 0.125); */
border: none;
}
.list-group-item:first-child {
padding-top: 0;
}
.list-group p{
font-size: 16px;
}
.list-com-announcements{
border-bottom: 1px solid #D1D1D1;
}
Also see: Tab Triggers