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>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Paper Boat</title>
<link href='https://fonts.googleapis.com/css?family=Roboto:700,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
</head>
<body>
<header class="container">
<div class="row">
<h4 class="col-sm-8 media" style="color:#004d40">Marcel Penney Media</h4>
<nav class="col-sm-4">
<p><a href="#profile">Profile</a></p>
<p><a href="#portfolio">Portfolio<a></p>
<p><a href="#contact">Contact</a></p>
</nav>
</div>
</header>
<section class="jumbotron">
<div class="container">
<div class="row text-center">
<h2 class="media">Web Based Design & Development</h2>
</div>
</div>
</section>
<div class="row rowBody">
<h4 id="profile">Profile</h4>
<p class="col-md-4 profileP border1">Welcome to Marcel Penney Media. I employ Clean, Creative, and Responsive UX/UI front-end web development utilizing CSS, HTML, Bootstrap and JavaScript (functional and object-oriented programming), with experience using JSON API's, JQuery, Git and GitHub, and constantly adding new tools to the box. Please look around and feel free to contact me if you have any questi ons. Thank you / Merci!</p>
</div>
<h4 id="portfolio" class="port">Portfolio</h4>
<!-- MAIN (Center website) -->
<div class="main">
<hr>
<!-- Portfolio Gallery Grid -->
<div class="row">
<div class="column">
<div class="content">
<a href="https://codepen.io/MarcelPenn/pen/qVyyRb" target="_blank"><img src="http://res.cloudinary.com/marpenncloud/image/upload/v1527723911/if_Weather_408406_ywkxlr.svg" alt="Weather" style="width:100%"></a>
<h3>Local Weather App</h3>
<p>Web based application showing local weather conditions using API's and geolocating.</p>
</div>
</div>
<div class="column">
<div class="content">
<a href="https://codepen.io/MarcelPenn/pen/vjoooX" target="_blank"><img src="http://res.cloudinary.com/marpenncloud/image/upload/c_scale,w_10/v1527724044/if_Tic_Tac_Toe_3151552_hmcbte.svg" alt="Lights" style="width:100%"></a>
<h3>Tic Tac Toe</h3>
<p>Tic Tac Toe game built with the unbeatable minamax algorithm based design.</p>
</div>
</div>
<div class="column">
<div class="content">
<img src="nature.jpg" alt="Nature" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum..</p>
</div>
</div>
<div class="column">
<div class="content">
<img src="mountains.jpg" alt="Mountains" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum..</p>
</div>
</div>
</div>
<!-- END MAIN -->
</div>
<div class="row rowBody">
<h4 id="contact">Contact</h4>
</div>
<footer>
<div class="row">
<p class="col-md-4 p1" style="margin-left: 20px">Website by Paper Boat Development/Logo by flaticon.com/<a href="http://res.cloudinary.com/marpenncloud/image/upload/v1527860325/paper-ship_if0bc8.png">Background vector created by Aviyabc - Freepik.com</a> 2018</p>
<ul class="col-md-8 text-right">
<li class="col-md-1">
<a href="https://www.facebook.com/marcel.penney.1" target="_blank">
<img src="http://res.cloudinary.com/marpenncloud/image/upload/v1527025909/if_06-facebook_104498_upbzx9.svg" alt="1">
</a>
</li>
<li class="col-md-1">
<a href="https://github.com/MarcelPenn" target="_blank">
<img src="http://res.cloudinary.com/marpenncloud/image/upload/v1527026304/if_github-social-media_765246_s0znf0.svg" alt="2">
</a>
</li>
<li class="col-md-1" style="margin: 5px 20px 0px 0px">
<a href="https://www.linkedin.com/in/marcel-penney-506007141/" target="_blank">
<img src="http://res.cloudinary.com/marpenncloud/image/upload/c_scale,h_64,w_64/v1527026811/if__linked_in_2560338_tdatin.png" alt="3">
</a>
</li>
</ul>
</div>
</footer>
</body>
</html>
.media {
font-family: Quicksand;
}
.border {
border: 1px solid black;
}
body {
font-family: 'Roboto', sans-serif;
background-image: url("http://res.cloudinary.com/marpenncloud/image/upload/v1527858807/159_rknglm.jpg");
}
ul {
list-style: none;
display: flex;
justify-content: flex-end;
}
header {
color: #00695c;
}
header nav {
display: flex;
justify-content: flex-end;
}
div > h1 {
font-size: 1.8rem;
}
nav > p {
cursor: pointer;
}
footer {
margin-top: 20px;
}
footer div {
display: flex;
align-items: center;
}
/* Customizations of Bootstrap classes */
header .row {
display: flex;
align-items: center;
}
.col-sm-4 p {
margin: 25px 20px 15px;
min-width: 60px;
padding: 1px;
}
section.container .row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.jumbotron {
display: flex;
align-items: center;
height: 350px;
background-image: url("http://res.cloudinary.com/marpenncloud/image/upload/v1526950439/technology-785742_1280-1280x430_peyzu6.jpg");
background-size: cover;
background-position: center;
border-top: 5px solid #c8e6c9;
border-bottom: 7px solid #c8e6c9;
}
.jumbotron h2 {
background-color: ;
display: inline-block;
color: white;
font-weight: 1000;
padding: 10px 35px;
border-radius: 5px;
font-size: 40px
}
footer {
background-color: #c8e6c9;
width: 100%;
margin: 0;
};
.col-sm-1 img {
min-width: 32px;
min-height: 33px;
}
.rowBody {
text-align: center;
color: #263238;
}
.profileP {
margin-left: 33%;
margin-right: 33%;
}
.contact {
margin-right: 200px;
}
.border1 {
border-left: solid;
border-right: solid;
border-color: #263238;
margin-bottom: 100px;
}
nav > p > a {
color: #004d40 ;
}
/* portfolio projects */
* {
box-sizing: border-box;
}
/* Center website */
.main {
max-width: 1000px;
margin: auto;
}
h1 {
font-size: 50px;
word-break: break-all;
}
.row {
margin: 8px -16px;
}
/* Add padding BETWEEN each column (if you want) */
.row,
.row > .column {
padding: 8px;
}
/* Create four equal columns that floats next to each other */
.column {
float: left;
width: 25%;
}
/* Clear floats after rows */
.row:after {
content: "";
display: table;
clear: both;
}
/* Content */
.content {
background-color: transparent;
padding: 10px;
}
/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 900px) {
.column {
width: 50%;
}
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.column {
width: 100%;
}
}
.port {
margin-left: 48%;
}
.container {
color: blue;
}
Also see: Tab Triggers