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.
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#"> Anthony Bruno </a>
</div>
<ul class="nav navbar-nav navbar-right">
<li> <a href="#"> Home </a> </li>
<li> <a href="#about"> About </a> </li>
<li> <a href="#portfolio"> Portfolio </a> </li>
<li> <a href="#contact"> Contact </a> </li>
</ul>
</div>
</nav>
<div class="home">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="text-center title"> Anthony Bruno </h1>
<h2 class="text-center"> Portfolio </h2>
<hr>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 center-block">
<ul>
<li> <button type="button" class="btn btn-default"> <i class="fa fa-twitter"></i> Twitter </button> </li>
<li><button type="button" class="btn btn-default">
<i class="fa fa-linkedin"></i> LinkedIn </button> </li>
<li><button type="button" class="btn btn-default"> <i class="fa fa-github"></i> GitHub </button> </li>
<li><button type="button" class="btn btn-default"> <i class="fa fa-fire"></i> FreeCodeCamp </button> </li>
</ul>
</div>
</div>
</div>
</div>
<div class="about" id="about">
<div class="container">
<div class="row">
<div class="col-lg-6">
<h1> About </h1>
<br>
<p>I am currently a second year student of Computer Science. Over the course of my study, I have continued to grow my interest and skills in areas such as (but not limited to) programming languages (Java, C++), web development (HTML, CSS, PHP, JavaScript),
information security and networks.
<p>
<p> Outside of university I like doing online courses, including Free Code Camp and Hackerrank. I'm also a huge soccer fan and support Adelaide United (C'mon you reds!). </p>
</div>
<div class="col-lg-6">
<br>
<img src="https://media.licdn.com/mpr/mpr/shrinknp_400_400/AAEAAQAAAAAAAAXFAAAAJDY1NjkxNWNkLTMxZmEtNDQxYy1iZTkwLThkZjhkZGE4Zjk2Yw.jpg" class="img-circle img-responsive displaypicture">
</div>
</div>
</div>
</div>
<div class="portfolio" id="portfolio">
<div class="container">
<div class="row center-block">
<h1> Portfolio </h1>
<h2> Projects that I have completed </h2>
</div>
<div class="row center-block">
<div class="col-lg-4">
<h3> Project 1 </h3>
<a href=""> <img src="http://www.billysboathousegrill.com/banner_sample300x300.jpg" class="img-rounded project-picture"> </a>
</div>
<div class="col-lg-4">
<h3> Project 2 </h3>
<a href=""> <img src="http://www.billysboathousegrill.com/banner_sample300x300.jpg" class="img-rounded project-picture"></a>
</div>
<div class="col-lg-4">
<h3> Project 3 </h3>
<a href=""> <img src="http://www.billysboathousegrill.com/banner_sample300x300.jpg" class="img-rounded project-picture"></a>
</div>
</div>
<div class="row center-block">
<div class="col-lg-4">
<h3> Project 4 </h3>
<a href=""> <img src="http://www.billysboathousegrill.com/banner_sample300x300.jpg" class="img-rounded project-picture"></a>
</div>
<div class="col-lg-4">
<h3> Project 5 </h3>
<a href=""> <img src="http://www.billysboathousegrill.com/banner_sample300x300.jpg" class="img-rounded project-picture"></a>
</div>
<div class="col-lg-4">
<h3> Project 6 </h3>
<a href=""> <img src="http://www.billysboathousegrill.com/banner_sample300x300.jpg" class="img-rounded project-picture"></a>
</div>
</div>
</div>
</div>
<div class="contact" id="contact">
<div class="container">
<h1> Contact </h1>
<div class=row>
<div class="col-lg-8">
<h2> Email: <br> <small> anthony.bruno196@gmail.com </small> </h2>
</div>
<div class="col-lg-4 list">
<ul>
<li>
<button type="button" class="btn btn-default"> <i class="fa fa-twitter"></i> Twitter </button>
</li>
<li>
<button type="button" class="btn btn-default">
<i class="fa fa-linkedin"></i> LinkedIn </button>
</li>
<li>
<button type="button" class="btn btn-default"> <i class="fa fa-github"></i> GitHub </button>
</li>
<li>
<button type="button" class="btn btn-default"> <i class="fa fa-fire"></i> FreeCodeCamp </button>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="bottom">
<div class="container">
<footer>
Copyright © Anthony Bruno 2015. All Rights Reserved
</footer>
</div>
</div>
@import url(https://fonts.googleapis.com/css?family=Libre+Baskerville:400,700);
.nav {
font-weight: bold;
}
.navbar {
background: #ddeeff;
}
.center-block {
margin: 0 auto;
float: none;
text-align: center;
padding-top: 2%;
}
.btn {
font-weight: bold;
font-size: 120%;
}
.about {
font-size: 150%;
padding-top: 5%;
padding-bottom: 10%;
}
.displaypicture {
height: 300px;
float: none;
margin: 0 auto;
}
.project-picture {
height: 300px;
width: 300px;
opacity: 0.6;
}
.project-picture:hover {
opacity: 1;
}
.list ul li {
padding-bottom: 10px;
}
ul {
list-style-type:none;
}
.home {
padding-top: 20%;
padding-bottom: 30%;
background: url('http://dreamatico.com/data_images/ocean/ocean-2.jpg') no-repeat center center fixed;
background-size: cover;
}
.about container {
padding-bottom: 10%;
padding-top: 2%;
background: blue;
}
.portfolio {
padding-bottom: 10%;
background: url('http://img14.deviantart.net/5c1c/i/2011/277/3/8/sky_background_by_blubkool-d4bungm.png') no-repeat center center fixed;;
background-size: cover;
}
h1, h2 {
font-family: 'Libre Baskerville', serif;
}
.title {
font-family: 'Libre Baskerville', serif;
font-size: 500%
}
.home .btn {
background: #99ccee;
border: black;
}
.home .btn:hover {
background: #83c1ea;
}
.home ul li {
display: inline;
padding-right: 20px
}
Also see: Tab Triggers