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.
<html lang="en">
<head>
<script src="https://use.fontawesome.com/59a8f26532.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chisom Okoye | Resume Template</title>
<link href="https://fonts.googleapis.com/css?family=Artifika|Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- // Intro -->
<header id="about">
<!--Putting the download link before the navbar make it appear below the navbar on the page stack -->
<a class="btn download" href="#" download>Download PDF</a>
<nav>
<a href="#about" title="">About</a>
<a href="#work" title="">Work Experience</a>
<a href="#education" title="">Education</a>
<a href="#contact" title="">Contact</a>
</nav>
<div class="content-wrap">
<img class="profile-img col-narrow" src="http://www.trishaomabu.com/wp-content/uploads/2018/05/profileImg.jpg">
<!-- Use a square profile image to get max effect of 50% border radius -->
<div class="col-wide">
<h1>Chisom Trisha Okoye</h1>
<h2>Front End Developer</h2>
<p>Add your profile summary here. You can have several paragraphs or add links.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus orci urna, eleifend sit amet luctus quis, tincidunt sit amet nulla. Cras laoreet ullamcorper nunc et sodales. Vivamus et auctor tortor. Sed imperdiet hendrerit purus. Vivamus pulvinar libero dolor, interdum aliquam orci iaculis eget. Duis dapibus neque quis dolor fringilla fermentum. Donec finibus ante venenatis diam sodales ultricies. Suspendisse in dapibus elit. Nullam vel leo in felis varius tempor id vel quam.</p>
</div>
</div>
</header>
<main>
<!-- // Work Experience -->
<section id="work" class="work">
<div class="content-wrap">
<h2>Work Experience</h2>
<!-- Job Details: copy this whole block to add more jobs -->
<div class="col-narrow">
<h3>Web Designer/Developer</h3>
<p class="uppercase">Independent Consultant</p>
<p>January 2014 - December 2017</p>
</div>
<div class="col-wide job-description">
<!-- Add as many paragraphs as you need. -->
<p class="justified">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus orci urna, eleifend sit amet luctus quis, tincidunt sit amet nulla. Cras laoreet ullamcorper nunc et sodales. Vivamus et auctor tortor. Sed imperdiet hendrerit purus. Vivamus pulvinar libero dolor, interdum aliquam orci iaculis eget. Duis dapibus neque quis dolor fringilla fermentum. Donec finibus ante venenatis diam sodales ultricies. Suspendisse in dapibus elit. Nullam vel leo in felis varius tempor id vel quam.</p>
<!-- This list can be deleted if you don't want to use it. -->
<p>Optional list:</p>
<ul>
<li>Created...</li>
<li>Lead...</li>
<li>Responsible for</li>
</ul>
</div>
<!-- end of Job Details block. -->
</div>
</section>
<!-- // Education -->
<section id="education" class="education">
<div class="content-wrap">
<h2>Education</h2>
<!-- School details: copy this whole block to add more schools. -->
<h3>Free Code Camp, Ongoing</h3>
<p>Front End Developer</p>
<!-- Add as many paragraphs as you need. -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec molestie purus a neque feugiat aliquam. Donec cursus, lacus non condimentum rutrum, velit tortor pretium neque, vitae finibus felis dolor ut neque.</p>
<p><a href="https://www.freecodecamp.org/trishachi" title="Free Code Camp Profile" target="_blank">View Profile</a></p>
<!-- End of school details. -->
<!-- School details: copy this whole block to add more schools. -->
<h3>Sheffield Hallam University, 2009</h3>
<p>MSc. Computer Network Engineering</p>
<!-- Add as many paragraphs as you need. -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec molestie purus a neque feugiat aliquam. Donec cursus, lacus non condimentum rutrum, velit tortor pretium neque, vitae finibus felis dolor ut neque.</p>
<!-- End of school details. -->
</div>
</section>
</main>
<!-- // Footer & contact info -->
<footer id="contact">
<div class="content-wrap">
<h2>Let's Keep in Touch!</h2>
<!-- Social media and contact links. Add or remove any networks. -->
<div class="contact-info">
<a href="http://www.trishaomabu.com" target="_blank"><i class="fa fa-globe fa-lg" aria-hidden="true"></i>
<span class="sr-only">Website</span></a>
<a href="mailto:chisombili.okoye@gmail.com"><i class="fa fa-envelope fa-lg" aria-hidden="true"></i>
<span class="sr-only">Email</span></a>
<a href="https://twitter.com/trishachi" target="_blank"><i class="fa fa-twitter fa-lg" aria-hidden="true"></i>
<span class="sr-only">Twitter</span></a>
<a href="https://www.linkedin.com/in/chisom-trisha-okoye/" target="_blank"><i class="fa fa-linkedin fa-lg" aria-hidden="true"></i>
<span class="sr-only">LinkedIn</span></a>
<a href="https://github.com/Trishachi" target="_blank"><i class="fa fa-github fa-lg" aria-hidden="true"></i>
<span class="sr-only">Github</span></a>
</div>
<p>Copyright © 2018 by Chisom Trisha Okoye</p>
</div>
</footer>
</body>
</html>
/* Global Styles
====================*/
html {
box-sizing: border-box;
}
body {
font-family: 'Open Sans', sans-serif;
margin: 0;
}
a {
color: #EF233c;
}
a:hover {
text-decoration: none;
}
h1, h2 {
font-family: 'Artifika', serif;
font-weight: 400;
}
h1 {
font-size: 50px;
}
h2 {
font-size: 25px;
margin-top: 0;
}
h3 {
margin: 0;
}
.content-wrap {
max-width: 950px;
margin: 0 auto;
padding: 60px 50px;
overflow: hidden;;
}
.uppercase {
text-transform: uppercase;
}
.justified {
text-align: justify;
}
.btn {
text-decoration: none;
background: #EF2336;
color: #fff;
padding: 10px;
display: inline-block;
}
.download {
position: absolute;
bottom: 0;
right: 0;
}
/* Header Styles and footer
====================*/
header, footer {
background-color: #2B2D42;
color: #8D99AE;
}
/* Header styles */
header {
padding-top: 50px;
position: relative;
}
nav {
text-align: center;
background-color: #fff;
position: fixed; /* if you dont set a width for a positioned element, it will only be as wide as its content*/
top: 0;
width: 100%; /*Can also be achieved by setting left: 0 and right:0 */
/*left: 0;
right: 0;*/
}
nav a {
display: inline-block;
padding: 15px 20px;
text-decoration: none;
text-transform: uppercase;
font-weight: 700;
}
header h1, header h2 {
color: #EDF2F4;
margin: 0;
}
.profile-img {
border-radius: 50%;
}
/* Footer styles */
footer {
text-align: center;
}
.contact-info a {
padding: 10px;
display: inline-block;
}
/* Education Styles
====================*/
.education {
background: linear-gradient(rgba(141, 153, 174, 0.8), rgba(141, 153, 174, 0.5)),
url(http://freelinkedinbackgrounds.com/wp-content/uploads/2015/01/Technology-008.jpg) no-repeat;
background-size: cover;
background-attachment: fixed;
}
p + h3 {
margin-top: 30px;
}
/* Work Experience Styles
====================*/
.work {
background-color: #EDF2F4
}
h3 ~ p {
margin: 0;
}
.job-description p:first-of-type {
margin-top: 0;
}
.job-decription {
margin-bottom: 25px;
}
/* Media Querie */
@media (min-width: 900px) {
.col-narrow {
width: 35%;
float: left;
}
.col-wide {
width: 62%;
float: right;
padding-left: 20px;
}
}
@media (max-width:899px) {
header {
text-align: center;
}
.profile-img {
width: 200px;
}
}
Also see: Tab Triggers