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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
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.
If the stylesheet 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 CSS 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.
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.
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="navbar">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navitems">
<span class="glyphicon glyphicon-menu-hamburger" id="menubtn"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navitems">
<ul class="nav navbar-nav navbar-right">
<li class="sections"><a href="#intro">My Story</a></li>
<li class="sections"><a href="#portfolio">Portfolio</a></li>
<li class="sections"><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<div class="container-fluid">
<!-- Introduction -->
<div class="row" id="intro">
<h2 class="text-center">My Story</h2>
<div class="story col-xs-8">
<p>My name is Linda, and this is my story.</p>
<p>I've known for awhile now that I wasn't satisfied with my "career", as it was. I had an idea of what I enjoyed from my past jobs - gathering, maintaining, and utilizing information - but no idea how to find a position that would let me focus on that. Scrolling through available courses on edX one day mid-2015, I happened upon Harvard's introduction to computer science class, CS50. It sounded tough, but interesting, so I went for it. </p>
<p>It took me just under a year to finish it, but complete it I did. The final few problem sets starting to spark a flame in my mind - a way I could use this new information to better enhance my ability to track information. From there, I found freeCodeCamp, which I'm working my way through now.</p>
<p>In this timespan, I've created a few simple projects - mostly web forms, with one larger project for my CS50 final. Now I'm ready to dig into some larger projects, to start developing some things I can use in my current position to make my work days easier and more efficient. If I can get these to work well, I can expand them to help my entire company, and from there - I can do anything.</p>
<hr>
<p>Languages/frameworks currently using: HTML / CSS / JS / PHP / MySQL / Bootstrap / jQuery</p>
<p>Other interests: cats / song lyrics / stories / photography / video games</p>
</div>
<div class="col-xs-4">
<img src="http://jonandlinda.com/codepenphotos/IMG_9662.jpg" class="img-rounded img-responsive" id="profilephoto">
</div>
</div>
<!--Portfolio section -->
<div class="row" id="portfolio">
<h2 class="text-center">Portfolio</h2>
<br>
<div class="projects">
<div class="col-xs-12 col-md-4">
<div class="thumbnail">
<img src="http://jonandlinda.com/codepenphotos/bcfinal.jpg">
<div class="caption">
<h4>Business Card Order Form</h4>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="thumbnail">
<img src="http://jonandlinda.com/codepenphotos/deliveryfinal.jpg">
<div class="caption">
<h4>Simple Delivery Form</h4>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="thumbnail">
<img src="http://jonandlinda.com/codepenphotos/logofinal.jpg">
<div class="caption">
<h4><a href="https://www.youtube.com/watch?v=ZJ04t7QWaIA">Log-O-Links (Harvard CS50 Final Project)</a></h4>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="thumbnail">
<img src="http://jonandlinda.com/codepenphotos/stampfinal.jpg">
<div class="caption">
<h4>In Progress: Stamp Inventory Tracking Site</h4>
</div>
</div>
</div>
</div>
</div>
<!-- Contact and social sites -->
<div class="row" id="contact">
<h2 class="text-center">Contact</h2>
<div class="col-md-offset-2">
<div class="sites col-xs-3">
<a href="mailto:lindakt16@gmail.com" target="_blank" title="Email"><img src="http://jonandlinda.com/codepenphotos/message2-128.png"></a>
</div>
<div class="sites col-xs-3">
<a href="https://www.freecodecamp.com/lindakatcodes" target="_blank" title="FreeCodeCamp"><img src="http://jonandlinda.com/codepenphotos/fcc_puckRoundedCorners600trans.png"></a>
</div>
<div class="sites col-xs-3">
<a href="https://codepen.io/lindakatcodes/" target="_blank" title="CodePen"><img src="http://jonandlinda.com/codepenphotos/Button-Black-Large.png"></a>
</div>
<div class="sites col-xs-3">
<a href="https://github.com/lindakatcodes" target="_blank" title="GitHub"><img src="http://jonandlinda.com/codepenphotos/GitHub-Mark-120px-plus.png"></a>
</div>
</div>
</div>
body {
margin: auto;
}
.sections {
margin-right: 20px;
margin-top: 10px;
font-size: 16px;
}
#menubtn {
color: red;
}
#intro {
color: white;
background: green;
font-size: 20px;
padding-top: 50px;
padding-left: 10px;
font-family: 'Inconsolata', monospace;
}
.story {
padding: 5% 1%;
}
#profilephoto {
padding-bottom: 15px;
padding-top: 35px;
height: -10%;
width: -5%;
}
#portfolio {
background: purple;
padding-top: 50px;
}
h2 {
font-family: 'Lalezar', cursive;
font-size: 54px;
color: white;
}
h4 {
font-family: 'Inconsolata', monospace;
font-size: 20px;
text-align: center;
}
.projects {
margin: auto;
}
#contact {
background: #663300;
padding-top: 30px;
padding-bottom: 10px;
}
.sites img {
width: 60px;
height: 60px;
}
Also see: Tab Triggers