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='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css' />
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<div id="integration-list">
<ul>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<div>
<h2>C.I.Agent Solutions</h2>
<span>Meets SPCC Regulation 40CFR112, Oil spill solutions, Oil Solidifier - just pick it up and send it to a land fill, Spill kits, Sub-station containment</span>
</div>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.ciagent.com/ciagent/cialogo4.png" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a target="_blank" href="http://ciagent.com">Visit Website</a><a href="#">Secondary Containment</a><a href="#">Vaults & Manholes</a><a href="#">Storm-Water</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>DCD Design</h2>
<span>Cable installation tools, Line swivels, Duct pullers, Cable pulling eyes, Wire mesh grips, Line blowing, Lubricants, Manhole products, Duct rodders and a new cable puller, Cable Lashers</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.dcddesign.com/images/dcd-logo.jpg" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="http://www.dcddesign.com/">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Huskie Tools</h2>
<span>Huskie Tools battery powered compression tools and cutters, hydraulic compression and cutting tools and dies</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.huskietools.info/ht_wp//wp-content/uploads/2012/06/logo.gif" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="http://www.huskietools.com/">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Line Hardware</h2>
<span>Pole, cable, pipe, coil pipe, flatbed, low-boy and equipment trailers.</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.linehardware.com/graphics/logo2.gif" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Lonestar Prestress</h2>
<span>Concrete poles up to 75’, square tapered, smooth or pebble finish, easi-set transportable pre-cast concrete buildings</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.lonestarprestress.com/images/main_logo.jpg" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Mid Central Electric</h2>
<span>½ to 5 KVA transformers and capacitor isolators, low loss copper wound</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.midcentralelectric.com/intro.jpg" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Quality FiberGlass</h2>
<span>Ground sleeves, switch gear and transformer box pads, cable trays, battery racks, fuse cabinets and trench covers.</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.qualityfiberglassproducts.com/uploads/3/3/9/7/3397275/1394822038.png" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>RMC Plastics</h2>
<span>Wildlife protectors, Secondary twist wire separators and Spreader tools.</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://rmcplastics.com/wp-content/themes/rmcplastics/images/RMC-logo200.fw.png" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>ROHN Products</h2>
<span>Tapered Steel poles for power line, substations and lighting.</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.twrlighting.com/images/rohn.jpg" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Speed Systems</h2>
<span>Cable preparation tools, secondary and primary cable strippers; elbow puller: Oklahoma and North Texas</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.spdsystems.com/Content/Images/SpdSysLogo.gif" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Tiiger</h2>
<span>Pole Pulling Equipment</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://www.tiiger.com/images/Tiiger_logo.jpg" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
<li>
<a class="expand">
<div class="right-arrow">+</div>
<h2>Trayer Engineering</h2>
<span>Submersible and Padmount Switchgear, Auto-Transfer & SCADA</span>
</a>
<div class="detail">
<div id="left" style="width:15%;float:left;height:100%;">
<div id="sup">
<img src="http://trayer.com/wp-content/uploads/2013/11/trayer-logo.jpg" width="100%" />
</div>
</div>
<div id="right" style="width:85%;float:right;height:100%;padding-left:20px;">
<div id="sup">
<div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span>
<br />
<br /><a href="#">Visit Website</a>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#integration-list {
font-family: 'Open Sans', sans-serif;
width: 80%;
margin: 0 auto;
display: table;
}
#integration-list ul {
padding: 0;
margin: 20px 0;
color: #555;
}
#integration-list ul > li {
list-style: none;
border-top: 1px solid #ddd;
display: block;
padding: 15px;
overflow: hidden;
}
#integration-list ul:last-child {
border-bottom: 1px solid #ddd;
}
#integration-list ul > li:hover {
background: #efefef;
}
.expand {
display: block;
text-decoration: none;
color: #555;
cursor: pointer;
}
h2 {
padding: 0;
margin: 0;
font-size: 17px;
font-weight: 400;
}
span {
font-size: 12.5px;
}
#left,#right{
display: table;
}
#sup{
display: table-cell;
vertical-align: middle;
width: 80%;
}
.detail a {
text-decoration: none;
color: #C0392B;
border: 1px solid #C0392B;
padding: 6px 10px 5px;
font-size: 13px;
margin-right: 7px;
}
.detail {
margin: 10px 0 10px 0px;
display: none;
line-height: 22px;
height: 150px;
}
.detail span{
margin: 0;
}
.right-arrow {
margin-top: 12px;
margin-left: 20px;
width: 10px;
height: 100%;
float: right;
font-weight: bold;
font-size: 20px;
}
.icon {
height: 75px;
width: 75px;
float: left;
margin: 0 15px 0 0;
}
.london {
background: url("http://placehold.it/50x50") top left no-repeat;
background-size: cover;
}
.newyork {
background: url("http://placehold.it/50x50") top left no-repeat;
background-size: cover;
}
.paris {
background: url("http://placehold.it/50x50") top left no-repeat;
background-size: cover;
}
$(function() {
$(".expand").on( "click", function() {
$(this).next().slideToggle(200);
$expand = $(this).find(">:first-child");
if($expand.text() == "+") {
$expand.text("-");
} else {
$expand.text("+");
}
});
});
Also see: Tab Triggers