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.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<nav class="text-right">
<ul>
<div class="logo">Neethu</div>
<div class="tabs">
<li><a href="#about" class="active">About</a></li>
<li><a href="#portfolio" class="active">Portfolio</a></li>
<li><a href="#contact" class="active">Contact</a></li>
</div>
</div>
</ul>
</nav>
<div id="about">
<h2 class="text-center">About</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diamHow to level up your web design portfolio? How to display works, ideas, inspirations on an amazing medium just properly? How to make your portfolio as impressive as it could be? These are the questions all designers should think about. Nowadays, portfolio designwebsites are undertaking the leading role to do this job. Designers need to put energy in this field. The following 20 best portfolio design websites I brought up here are some great examples.
1. Seymour Powel
They are a multidisciplinary group of design researchers, strategists, brand experts, product, UX, UI designers and makers. Their track record of imagining and then creating award winning designs and world-first innovationsresearchers, strategists, brand experts, product, UX, UI designers and makers. Their track record of imagining and then creating award winning designs and world-first innovations stretches back over 30 years. It’ll help you innovate, creating strategies and products that take you somewhere different from the competition by delivering unexpected but relevant solutions for the future. stretches back over 30 years. It’ll help you innovate, creating strategies and products that take you somewhere different from the competition by delivering unexpected but relevant solutions for the future.<p>
<div class="card">
<img src="http://itsmy.com.au/wp-content/uploads/professional-woman-5.jpg" style="width:100%">
<h1>Neethu Perumath</h1>
<p class="title">Front End Developer</p>
<div style="margin: 24px 0;">
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
</div>
<p><button>Contact</button></p>
</div>
</div>
<!......portfolil......>
<div id="portfolio">
<h2 class="text-center">portfolio</h2>
<div class="row">
<div class="col-sm-4">
<img src="http://audiosoulultra.gr/wp-content/uploads/2017/05/Online.jpg">
<article>
<header>
<h3 >Tribute page</h3>
</header>
<p>They are a multidisciplinary group of design researchers, strategists, brand experts, product, UX, UI designers and makers. Their track record of imagining and then creating award winning designs and world-first innovationsresearchers, strategists, brand experts, product, UX, UI designers and makers.</p>
</article>
</div>
<div class="col-sm-4">
<img src="http://audiosoulultra.gr/wp-content/uploads/2017/05/Online.jpg"alt="portfolio">
<header>
<h3>Personal Portfolio Page</h3>
</header>
<p>They are a multidisciplinary group of design researchers, strategists, brand experts, product, UX, UI designers and makers. Their track record of imagining and then creating award winning designs and world-first innovationsresearchers, strategists, brand experts, product, UX, UI designers and makers.</p>
</div>
<div class="col-sm-4">
<img src="http://audiosoulultra.gr/wp-content/uploads/2017/05/Online.jpg">
<header>
<h3>Website for NPRK</h3>
</header>
<article>
<p>They are a multidisciplinary group of design researchers, strategists, brand experts, product, UX, UI designers and makers. Their track record of imagining and then creating award winning designs and world-first innovationsresearchers, strategists, brand experts, product, UX, UI designers and makers.</p>
</article>
</div>
</div>
</div>
<!....contact....>
<div id="contact">
<h2 class="text-center">contact</h2>
<div class="row">
<div class="col-sm-4">
<address style="padding-left:40px;">
<h4>For more information contact:</h4>
<p>
Neethu Perumath<br>
H-Strand<br>
Stockholm<br>
Sweden<br>
Email:neethuperumath@gmail.com<br>
ph:+468905674123
</p>
</address>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="usr">Name:</label>
<input placeholder="name"id='usr'class="form-control"type="text">
</div>
<div class=form-group>
<label for="email">Email Id:</label>
<input type="email"placeholder="eg:yourid@gmail.com"id="email"class="form-control">
</div>
<div class="form-group">
<label for="comment">Comment:</label>
<textarea rows="5"type="comment"placeholder="message"id="comment"class="form-control"></textarea>
</div>
<div class="form-group">
<input type="submit"class="btn btn-info"value"submit"></div>
</div>
</div>
<!......social.....>
<h2 class="text-center">Social</h2>
<div style="margin: 0px 450px;">
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-skype"></i></a>
</div>
</div>
</div>
<hr>
<footer>
<p class="text-center">Coded by Neethu Perumath @2018</p>
</footer>
body {
background-color: #FFFFFF;
margin: 0;
}
nav {
background-color: #003366;
overflow: hidden;
position: fixed;
top: 0;
width: 200%;
max-height: 90px;
z-index: 5;
}
nav ul li {
list-style: none;
}
nav ul .logo {
color: #fff;
font-size: 44px;
float: left;
overflow: hidden;
padding: 20px;
margin-left: 50px;
margin-right: 400px;
font-weight: bold;
font-family: sans-serif;
text-transform: uppercase;
}
nav ul li a {
float: left;
margin-right: 15px;
padding: 25px;
text-decoration: none;
color: #fff;
font-size: 24px;
text-transform: uppercase;
color: #777777;
font-weight: 550;
letter-spacing: 1.3px;
}
nav ul li a:hover {
color: #555;
text-decoration: none;
box-shadow: 4px 5px rgba(92, 26, 92, 0.3);
}
#about{
padding:100px;
}
#about h2
{
color: #888;
text-transform: uppercase;
font-weight: bold;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 500px;
margin: auto;
text-align: center;
font-family: arial;
}
.title{
color:brown;
font-size:20px;
}
button {
border: none;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
cursor: pointer;
width: 100%;
font-size: 18px;
}
a{
padding:20px;
font-size:30px;
}
<!...contact press down...>
#contact {
background: #eee;
width: 100%;
min-height: 200px;
margin-top: -20px;
padding: 50px;
}
#contact h2 {
color: #888;
text-transform: uppercase;
font-weight: bold;
padding-top: 50px;
padding-bottom: 20px;
}
#portfolio {
background: #eee;
width: 100%;
min-height: 200px;
margin-top: -20px;
padding: 50px;
}
#portfolio h2 {
color: #888;
text-transform: uppercase;
font-weight: bold;
padding-top: 50px;
padding-bottom: 20px;
}
.col{
padding-left:300px;
padding-right:400px;
}
Also see: Tab Triggers