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. You can use the CSS from another Pen by using it's URL and the proper URL extention.
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 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.
<body data-spy="scroll" data-target="#navbar">
<div class="container-fluid">
<nav class="navbar navbar-inverse navbar-fixed-top" id="navbar">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Portfolio</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#Home">Home</a></li>
<li><a href="#Skills">Skills</a></li>
<li><a href="#Projects">Projects</a></li>
<li><a href="#Contact">Contact</a></li>
</ul>
</div>
</nav>
<div class="jumbotron" id="Home">
<div class="container text-center">
<h1 style="color:#92dd03";>My Portfolio</h1>
<p>A Freelance Front-End Web Designer and Developer</p>
<img id ="arooj-pic" src="https://res.cloudinary.com/arooj123/image/upload/v1483732350/2366_ta0103.jpg">
</div>
</div>
<div class="jumbotron">
<div class="container text-center">
<p>I can design and develop websites for you</p>
<p>Have great people's skills</p>
<p>Can work within the tighest deadlines</p>
<p>Wont commit if can't make it happen</p>
<p>Willing to work at your named price</p>
</div>
</div>
<div class="jumbotron" id="Skills">
<div class="container text-center">
<h3>My Skills</h3>
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar"
aria-valuenow="40" aria-valuemin="0" aria-valuemax="50" style="width:90%">
HTML
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar"
aria-valuenow="40" aria-valuemin="0" aria-valuemax="50" style="width:90%">
CSS
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar"
aria-valuenow="40" aria-valuemin="0" aria-valuemax="50" style="width:90%">
Bootstrap
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar"
aria-valuenow="70" aria-valuemin="0" aria-valuemax="50" style="width:70%">
jQuery
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar"
aria-valuenow="60" aria-valuemin="0" aria-valuemax="50" style="width:60%">
Javascript
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar"
aria-valuenow="70" aria-valuemin="0" aria-valuemax="50 " style="width:50%">
Wordpress
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid bg-3 text-center" id="Projects">
<h3>Some of my Work</h3><br>
<div class="w3-row-padding w3-margin-top">
<div class="w3-third">
<div class="w3-card-2">
<img src="https://res.cloudinary.com/arooj123/image/upload/v1483843484/bbc-clone_aooixw.png" style="width:100%; padding-bottom:30px";>
<div class="w3-container" style="min-height:300px">
<p>I believe cloning a great looking website from scratch is the best way to test your waters in web development.This was my attempt at cloning a small bit of BBC website with only HTML and CSS.</p>
</div>
</div>
</div>
<div class="w3-third">
<div class="w3-card-2">
<img src="https://res.cloudinary.com/arooj123/image/upload/v1483843344/tributepage_q3yfqv.png" style="width:50%";>
<div class="w3-container" style="max-height:300px">
<p>I created this tribute page as part of my CodeCamp challenge.Take a moment and youtube him.Gorgeous voice!</p>
</div>
</div>
</div>
<div class="w3-third">
<div class="w3-card-2">
<img src="https://res.cloudinary.com/arooj123/image/upload/v1483843385/landing-page_wfcmu0.png" style="width:60%";>
<div class="w3-container" style="min-height:300px";>
<p>
App landing pages can convert visitors into customers.Here is my attempt at creating an app landing page for a fictitious app.Hope you like the color scheme.
</p>
</div>
</div>
</div>
</div>
</div>
<section class="footer" id="footer">
<p class="text-center">
<a href="#wrapper" class="gototop"><i class="fa fa-angle-double-up fa-2x"></i></a>
</p>
<div class="container" id="Contact">
<ul>
<button><li><a href="https://www.facebook.com/arooj.mumtaz"><i class="fa fa-facebook-official" aria-hidden="true"></a></i></li></button>
<button><li><a href="https://www.freecodecamp.com/aroojmumtaz"><i class="fa fa-codepen" aria-hidden="true"></a></i></li></button>
<button><li><a href="https://github.com/aroojmumtaz"><i class="fa fa-github" aria-hidden="true"></i></a></li></button>
</ul>
</div>
</section>
<footer class="container-fluid text-center">
<p>Arooj Mumtaz ©</p>
</footer>
</body>
.navbar {
margin-bottom: 0;
border-radius: 0;
}
footer {
background-color: #f2f2f2;
padding: 25px;
}
.nav a:hover {
background: #92dd03 !important;
}
body {
font-family: "Lobster";
-webkit-animation-delay: 0.1s;
-webkit-animation-name: fontfix;
-webkit-animation-duration: 0.1s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: linear;
position:relative;
background-image:url(https://res.cloudinary.com/arooj123/image/upload/e_gradient_fade:20/v1483731179/background_wvue3o.jpg);
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
@-webkit-keyframes fontfix {
from { opacity: 1; }
to { opacity: 1; }
}
h1 {
font-family:"Sofia";
-webkit-animation-delay: 0.1s;
-webkit-animation-name: fontfix;
-webkit-animation-duration: 0.1s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: linear;
}
p{
font-size:22px;
}
#Home {
text-shadow: black 0.3em 0.3em 0.3em;
background-color: rgba(243, 243, 243, 0.5);
}
.mySlides, #arooj-pic{
border-radius:50%;
border:5px solid #92dd03;
max-width:200px;
display:none;
}
#jumbotron {
padding-bottom:80px;
}
ul {
list-style:none;
text-align:center;
}
button {
color: #fff;
border:solid 2px #92dd03;
border-radius:50%;
display:inline-block;
width:50px;
height:50px;
text-align:center;
font-size:20px;
line-height:48px;
transition:all .3s ease-in-out;
&:hover {
border:solid 2px #92dd03;
color:$fargglad;
background: #fff;
}
.w3-card-2 {
max-height:300px;
overflow:hidden;
}
$(function() {
$("#arooj-pic").one("load", function() {
$(this).slideDown(5000, function() { // Show the image when loaded
$(this).parents('#content').masonry({ // After that, trigger the .masonry()
itemSelector:"div.post",
isAnimated:true
});
});
}).each(function() {
if(this.complete) {
$(this).load();
}
});
});
Also see: Tab Triggers