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.
<header class="top">
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">santak mishra</a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navMenu">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navMenu" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#about">
<i class="fa fa-user"></i> about
</a>
</li>
<li>
<a href="#portfolio">
<i class="fa fa-magic"></i> portfolio
</a>
</li>
<li>
<a href="#contact">
<i class="fa fa-envelope"></i> contact
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-4">
<img class="img-responsive img-circle img-thumbnail" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/491434/profile/profile-512_2.jpg" alt="Santak Mishra">
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center">
<h1>Santak Mishra</h1>
<h3>Front End Web Developer</h3>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center social">
<a href="https://facebook.com/santak2010" target="_blank">
<i class="fa fa-facebook"></i>
</a>
<a href="https://twitter.com/santakmishra" target="_blank">
<i class="fa fa-twitter"></i>
</a>
<a href="https://in.linkedin.com/in/santakmishra" target="_blank">
<i class="fa fa-linkedin"></i>
</a>
<a href="http://stackoverflow.com/users/2079820/shan?tab=profile" target="_blank">
<i class="fa fa-stack-overflow"></i>
</a>
<a href="https://github.com/santakmishra" target="_blank">
<i class="fa fa-github"></i>
</a>
</div>
</div>
<hr class="secDiv">
</div>
</header>
<main>
<section id="about" class="container">
<div class="row">
<div class="col-md-3 text-right hidden-sm hidden-xs">
<h2>About<br>Me</h2>
</div>
<div class="col-xs-12 col-md-9">
<h2 class="visible-xs visible-sm">About Me</h2>
<p class="lead">I am a cyber-nerd from India who absolutely loves technology.</p>
<p class="text-justify">I am also a coder, developer, hacker, blogger, reader, writer, thinker, entrepreneur, gamer, music lover, teacher, motivator, nature admirer and coffee addict. Apart from a Bachelor’s degree in Computer Science and a couple certifications in the IT
domain, I’m mostly a self taught Full Stack Web Developer and Mobile Applications Developer. I have been dabbling in Computer Science for the past 10 years, often experimenting, learning new things, building personal projects and so on. My passion
drives me to stay updated with the latest trends in the field of cyber, web and information technology. I endorse the Open-Source community and do my best to contribute towards it. I am looking forward to getting a Masters Degree in Computer Science
to further enhance my knowledge and boost my career. My goal is to meet and work with a team of like-minded people where I can ideate freely and use my expertise to achieve excellence or build something truly remarkable.</p>
<p class="text-justify">I am available as a freelance web developer and would love to take up challenging projects. If you would like to talk about a project, opportunity, consult about something or would simply like to chat, feel free to leave a message. I promise I don't bite :)</p>
</div>
</div>
<hr class="secDiv">
</section>
<section id="portfolio" class="container">
<div class="row">
<div class="col-md-3 text-right hidden-sm hidden-xs">
<h2>My<br>Portfolio</h2>
</div>
<div class="col-xs-12 col-md-9">
<h2 class="visible-xs visible-sm">My Portfolio</h2>
<div class="row">
<div class="col-xs-12 col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Project 1</h4>
</div>
<div class="panel-body">
<img class="img-responsive" src="http://placehold.it/1440x900" alt="Project 1 image">
<p>Short project description goes here...</p>
</div>
<div class="panel-footer">
<a class="btn btn-default btn-block" href="#">
Check it out <i class="fa fa-arrow-right"></i>
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Project 2</h4>
</div>
<div class="panel-body">
<img class="img-responsive" src="http://placehold.it/1440x900" alt="Project 2 image">
<p>Short project description goes here...</p>
</div>
<div class="panel-footer">
<a class="btn btn-default btn-block" href="#">
Check it out <i class="fa fa-arrow-right"></i>
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Project 3</h4>
</div>
<div class="panel-body">
<img class="img-responsive" src="http://placehold.it/1440x900" alt="Project 3 image">
<p>Short project description goes here...</p>
</div>
<div class="panel-footer">
<a class="btn btn-default btn-block" href="#">
Check it out <i class="fa fa-arrow-right"></i>
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Project 4</h4>
</div>
<div class="panel-body">
<img class="img-responsive" src="http://placehold.it/1440x900" alt="Project 4 image">
<p>Short project description goes here...</p>
</div>
<div class="panel-footer">
<a class="btn btn-default btn-block" href="#">
Check it out <i class="fa fa-arrow-right"></i>
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Project 5</h4>
</div>
<div class="panel-body">
<img class="img-responsive" src="http://placehold.it/1440x900" alt="Project 5 image">
<p>Short project description goes here...</p>
</div>
<div class="panel-footer">
<a class="btn btn-default btn-block" href="#">
Check it out <i class="fa fa-arrow-right"></i>
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Project 6</h4>
</div>
<div class="panel-body">
<img class="img-responsive" src="http://placehold.it/1440x900" alt="Project 6 image">
<p>Short project description goes here...</p>
</div>
<div class="panel-footer">
<a class="btn btn-default btn-block" href="#">
Check it out <i class="fa fa-arrow-right"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<hr class="secDiv">
</section>
<section id="contact" class="container">
<div class="row">
<div class="col-md-3 text-right hidden-sm hidden-xs">
<h2>Contact<br>Me</h2>
</div>
<div class="col-xs-12 col-md-9">
<h2 class="visible-xs visible-sm">Contact Me</h2>
<p class="lead">You can write to me at:-</p>
<p class="lead"><em><a href="mailto:santakmishra@outlook.com">santakmishra@outlook.com</a></em></p>
</div>
</div>
</section>
</main>
<footer>
<div class="container">
<span class="pull-left">© 2016, Santak Mishra</span>
<span class="pull-right">
<a href="#">
<i class="fa fa-arrow-circle-o-up"></i> Back to Top
</a>
</span>
</div>
</footer>
body {
font-family: 'Indie Flower', cursive;
font-size: 16px;
background: #eee;
}
footer {
font-family: Helvetica Neue, Helvetica, sans-serif;
font-size: 14px;
background: #222;
color: #ccc;
padding: 15px;
text-align: center;
}
footer a {
color: #ccc;
}
footer a:hover, footer a:focus {
color: #abc123;
text-decoration: none;
}
p {
font-family: Helvetica Neue, Helvetica, sans-serif;
}
p.lead {
font-size: 24px;
font-weight: 500;
}
.img-thumbnail {
border: 3px solid #111;
}
hr.secDiv {
border: 3px solid #ccc;
box-shadow: 0 1px 0 #999;
margin: 30px 0;
}
nav a.navbar-brand {
font-size: 24px;
}
nav .navbar-nav > li > a {
font-size: 20px;
}
header.top h1 {
font-size: 50px;
}
header.top h3 {
line-height: 0;
margin-bottom: 30px;
}
.social {
font-size: 40px;
}
.social a {
color: #666;
text-decoration: none;
transition: all 0.3s;
}
.social a:hover,
.social a:focus {
color: #111;
text-shadow: 0px 0px 3px #111;
}
#about h2,
#portfolio h2,
#contact h2 {
font-size: 40px;
margin: 0 0 15px 0;
}
.panel {
font-family: Helvetica Neue, Helvetica, sans-serif;
}
#contact {
min-height: 250px;
}
Also see: Tab Triggers