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. You can use the CSS from another Pen by using it's URL and the proper URL extention.
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 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.
<link href="https://fonts.googleapis.com/css?family=Sedgwick+Ave+Display" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<div class="navbar"><div class="row">
<div class="nav-txt col-md-3">
Megan Schmieder</div>
<div class="col-md-3"></div>
<div class="col-md-2"><a href="#about" class="blk"><button class="btn btn-block nav-btn">About Me</button></a></div>
<div class="col-md-2"><a href="#portfolio" class="blk"><button class="btn btn-block nav-btn">Portfolio</button></a></div>
<div class="col-md-2"><a href="#contact" class="blk"><button class="btn btn-block nav-btn">Contact</button></a></div>
</div>
</div>
<a name="about"></a>
<div class="about"><div class="abt-head row">
<span><img class="pic" src="https://media.licdn.com/mpr/mpr/shrinknp_400_400/AAEAAQAAAAAAAA3dAAAAJDVlZDk5OGJmLTdiMTAtNGQxMi04ODhkLWFlNGI1ODMwMzE3OA.jpg" alt="Megan Schmieder head-shot"></span>
<span>Ghost Writer</span>
<span><i class="fa fa-cog fa-spin"></i></span>
<span>Social Marketer</span>
<span><i class="fa fa-cog fa-spin"></i></span>
<span>Fledgling Coder</span>
<span><i class="fa fa-cog fa-spin"></i></span>
<span>Aspiring Author</span>
</div>
<p class="txt-pad">My name is Megan Schmieder. I am originally from St. Louis, Missouri, but I'm currently living in Pensacola, Florida, with my husband and a variety of pets. In my free time, I enjoy a variety of entertainment media: reading, playing video games, surfing the internet, and writing. I'm very excited to be learning how to code and expand my creative horizons.
</p>
</div>
<a name="portfolio"></a><div class="folio">
<h1 class="folio-heads">Pens</h1>
<div class="row"><div class="folio-div col-md-4"><a href="https://codepen.io/Meegs/full/dzWypj/" class="blk"><br>Tribute Page (FreeCodeCamp Project)</a></div>
<div class="folio-div col-md-4"><a href="https://codepen.io/RopellaGroup/full/brLvJa/" class="blk">Proposed Database Page</a><br>
for <a href="http://huntscanlon.com" class="blk">Hunt Scanlon Media</a></div>
<div class="folio-div col-md-4"><br>More Coming Soon</div>
</div>
<div class="row"><div class="folio-div col-md-4"><a href="https://codepen.io/Meegs/full/dzWypj/"><img class="folio-pic" src="https://content.screencast.com/users/MeegsSchmi/folders/Jing/media/684e2221-bbd3-42b1-a36d-42405e01c06f/2017-08-13_1623.png" alt="Tribute Page Screen Shot"></a></div>
<div class="folio-div col-md-4"><a href="https://codepen.io/RopellaGroup/full/brLvJa/"><img class="folio-pic" src="https://content.screencast.com/users/MeegsSchmi/folders/Jing/media/21bb5056-8454-4ab0-b875-96c476d08a9c/2017-08-22_2108.png" alt="Proposal Page Screen Shot"></a></div>
<div class="folio-div col-md-4">...</div>
</div>
<div class="space"></div>
<h1 class="folio-heads">Ghost Written Content</h1>
<div class="row"><div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/what-does-your-linkedin-profile-say-you-pitfalls-avoid-robin-foster?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_post_details%3BdEq6N4sgTlGKoa7YfWETUA%3D%3D" class="blk">What Does Your LinkedIn Profile Say About You?: Pitfalls to Avoid</a></div>
<div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/change-better-than-blowing-up-robin-foster" class="blk"><br>Change Is Better than Blowing Up</a></div>
<div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/food-bytes-menu-preparing-ift17-robin-foster" class="blk"><br>IFT17 Food Bytes Series</a></div>
</div><div class="row"><div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/what-does-your-linkedin-profile-say-you-pitfalls-avoid-robin-foster?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_post_details%3BdEq6N4sgTlGKoa7YfWETUA%3D%3D"><img src="https://content.screencast.com/users/MeegsSchmi/folders/Jing/media/ba7eb2f7-37ad-4bcc-83da-b56ea6974837/2017-08-17_2006.png" alt="LinkedIn Pitfalls to Avoid Article" class="folio-pic"></a></div>
<div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/change-better-than-blowing-up-robin-foster"><img src="https://content.screencast.com/users/MeegsSchmi/folders/Jing/media/434b7545-4d96-4775-88a1-b9ad37651bd4/2017-08-13_1653.png" alt="Change Is Better Than Blowing Up Article" class="folio-pic"></a></div>
<div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/food-bytes-menu-preparing-ift17-robin-foster"><img src="https://content.screencast.com/users/MeegsSchmi/folders/Jing/media/2c3e29cb-383a-478b-9295-a4e0ee6d0e2a/2017-08-13_1656.png" alt="Food Bytes Article" class="folio-pic"></a></div>
</div>
<div class="space"></div>
<div class="row"><div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/4-things-remember-when-visiting-chicagoland-aka-ropella-robin-foster" class="blk">4 Things to Remember When Visiting Chicagoland</a></div>
<div class="folio-div col-md-4"><a href="http://www.ropella.com/index.php/index/patsblog" class="blk"><br>Ropella CEO's Blog</a></div>
<div class="folio-div col-md-4"><br>More Coming Soon</div>
</div>
<div class="row"><div class="folio-div col-md-4"><a href="https://www.linkedin.com/pulse/4-things-remember-when-visiting-chicagoland-aka-ropella-robin-foster"><img class="folio-pic" src="https://content.screencast.com/users/MeegsSchmi/folders/Jing/media/a6456075-5cc0-457d-b2e8-8a0de5fd4e85/2017-08-13_1707.png" alt="Chicagoland Article"></a></div>
<div class="folio-div col-md-4"><a href="http://www.ropella.com/index.php/index/patsblog"><img class="folio-pic" src="https://content.screencast.com/users/MeegsSchmi/folders/Jing/media/aeda362a-0bb4-4d18-87f6-7a3d68e5f301/2017-08-13_1649.png" alt="Ropella Blog Image"></a></div>
<div class="folio-div col-md-4">...</div>
</div>
<div class="space"></div>
<h1 class="folio-heads">Highlights</h1>
<p class="txt-pad">CEO Blog Post "My Greatest Asset" garnered more than 10,000 LinkedIn views in less than 36 hours, as well as 100 combined likes between Facebook and LinkedIn.</p>
</div>
<a name="contact"></a><div class="contact">
<h1 class="folio-heads">Connect with Me on Social Media</h1>
<div class="abt-head row">
<span><a href="https://www.facebook.com/megan.schmieder.3" class="fa fa-facebook whi"></a></span>
<span><a href="https://www.linkedin.com/in/megan-schmieder-978732136/" class="fa fa-linkedin whi"></a></span>
<span><a href="mailto:meegsschmi@yahoo.com?Subject=CodePen%20Portfolio" target="_top" class="fa fa-envelope-o whi"></a></span>
</div>
</div>
.navbar {
overflow: hidden;
background-color: #FF1493;
position: fixed;
top: 0;
width: 100%;
z-index: 1;
}
.nav-txt {
font-family: 'Sedgwick Ave Display', cursive;
font-size: 35px;
}
.nav-btn {
font-family: 'Sedgwick Ave Display', cursive;
font-size: 25px;
background-color: #FF1493;
border-color: black;
}
.about {
padding-top: 100px;
background-color: #CCCCFF;
font-family: 'Playfair Display', serif;
font-size: 20px;
padding-bottom: 25px;
}
div.abt-head {
display: table;
table-layout: fixed;
width: 100%;
padding-bottom: 20px;
}
div.abt-head span{
display: table-cell;
text-align: center;
}
.pic {
height: 100px;
border-radius: 50%;
}
.keyword {
style: text-align:center;
line-height: 100px;
}
.txt-pad {
padding: 25px;
}
.folio {
background-color: #FF99CC;
font-family: 'Playfair Display', serif;
font-size: 20px;
padding: 25px;
}
.contact {
background-color: #CCCCFF;
font-family: 'Playfair Display', serif;
font-size: 20px;
padding: 25px;
}
.folio-heads {
text-align: center;
font-family: 'Sedgwick Ave Display', script;
}
.space {
height: 35px;
}
.folio-pic {
width: 100%;
}
.folio-div {
padding-left: 25px;
text-align: center;
}
a.blk:link {
color: black;
}
a.blk:hover {
color: black;
}
a.blk:visited {
color: black;
}
a.blk:active {
color: white;
}
a.whi:link {
color: white;
}
a.whi:hover {
color: white;
text-decoration: none;
}
a.whi:visited {
color: white;
}
a.whi:active {
color: black;
}
.fa {
padding: 10px;
font-size: 50px;
width: 38px;
text-align: center;
text-decoration: none;
border-radius: 50%;
margin-right: 10px;
margin-top: 10px;
}
.fa-facebook {
background: #3B5998;
color: white;
}
.fa-linkedin {
background: #2886EF;
color: white;
}
.fa-envelope-o {
background: #FF1493;
color: white;
}
Also see: Tab Triggers