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.
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MaxPower Design - A responsive website page</title>
</head>
<body>
<header>
<div id="header-inner">
<a href="#" id="logo"></a>
<nav>
<a href="#" id="menu-icon"></a>
<ul>
<li><a href="#" class="current">Home</a></li>
<li><a href="#">Skills</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Our team</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</div>
</header>
<!---end of header--->
<section class="banner">
<div class="banner-inner">
<img src="https://res.cloudinary.com/dgpmuegqe/image/upload/v1492571172/rocket_design_k4nzbm.png">
</div>
</section>
<!--end of banner-->
<section class="one-fourth" id="html">
<td><i class="fa fa-html5"></i></td>
<h3>HTML</h3>
</section>
<section class="one-fourth" id="css">
<td><i class="fa fa-css3"></i></td>
<h3>CSS</h3>
</section>
<section class="one-fourth" id="seo">
<td><i class="fa fa-search"></i></td>
<h3>SEO</h3>
</section>
<section class="one-fourth" id="social">
<td><i class="fa fa-users"></i></td>
<h3>Social</h3>
</section>
<!--end of four col section-->
<section class="inner-wrapper">
<article id="tablet">
<img src="https://res.cloudinary.com/dgpmuegqe/image/upload/v1492571257/hand_ipad_vr0pfu.png">
</article>
<aside id="tablet2">
<h2>Mobile.Tablet.Desktop.</h2>
<p>A clean HTML layout and CSS stylesheet making for a great responsive framework to design around that includes a responsive drop down navigation menu, image slider, contact form and ‘scroll to the top’ jQuery plugin.jQuery plugin.that includes a responsive drop down navigation menu, image slider, contact form and ‘scroll to the top’ jQuery plugin.</p>
</aside>
</section>
<section class="inner-wrapper-2">
<article id="mobile">
<h2>Accross Each Device</h2>
<p>A clean HTML layout and CSS stylesheet making for a great responsive framework to design around that includes a responsive drop down navigation menu, image slider, contact form and ‘scroll to the top’ jQuery plugin.that includes a responsive drop down navigation menu, image slider, contact form and ‘scroll to the top’ jQuery plugin.</p>
</article>
<aside class="hand-mobile">
<img src="https://res.cloudinary.com/dgpmuegqe/image/upload/v1492571257/hand_mobile_stt5sh.png">
</aside>
</section>
<section class="inner-wrapper">
<article >
<img src="https://res.cloudinary.com/dgpmuegqe/image/upload/v1492571256/desktop_fsksnx.png">
</article>
<aside id="desktop">
<h2 >Desktop</h2>
<p>Also included with the Template is the Template Customization Guide with five special video lessons showing you how to get professional website pictures & how to edit them to fit the template, how to make a custom website logo, how to upload your HTML website template to the internet and an HTML website building tools video!</p>
</aside>
</section>
<!--end of two half section-->
<section class="inner-wrapper-3">
<section class="one-third" id="google">
<h3>Google Search</h3>
<p>Also included with the Template is the Template Customization Guide with five special video lessons showing you how to get professional website pictures & how to edit them to fit the template,flessons showing you how to get professional website pictures & how to edit them to fit the template,f</p>
</section>
<section class="one-third" id="marketing">
<h3>Marketing</h3>
<p>Note: this template includes a page with a PHP website contact form and requires a web host or a program such as XAMPP to run PHP and display it’s content.id="desktop"lessons showing you how to get professional website pictures & how to edit them to fit the template,f </p>
</section>
<section class="one-third" id="customers">
<h3>Happy Customers</h3>
<p>When you purchase and download The Rocket Design HTML Template you get a full five page responsive HTML website template with both a “light” and “dark” version of the template in addition to the following features:</p>
</section>
</section>
<!--end of one-third section-->
<section id="smelly">
<h2>: )</h2>
</section>
<!--end of smelly section-->
<footer>
<ul class="social">
<li><a href="#" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-youtube"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-instagram"></i></a></li>
</ul>
</footer>
<!--end of footer-->
<footer class="second">
<p>© MaxPower Design</p>
</footer>
<!--end second footer-->
</body>
@import 'https://fonts.googleapis.com/css?family=Indie+Flower';
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background-color:#F5F5F5;
color: 67727A;
font-family: 'Indie Flower', cursive;
margin: 0;
}
h2 {
font-size: 180%;
font-weight: 700px;
text-align: center;
padding-top: 2%
}
h3 {
font-size: 175%;
line-height: 155%;
padding: 5% 0;
}
p {
font-size: 110%;
line-height: 150%;
padding: 1%;
text-indent: 2%;
text-align: justify;
color: #F5F5F5;
}
img {
max-width: 100%;
height: auto;
width: auto;
margin-bottom: -4px;
}
header {
background-color: #6991AC;
width: 100%;
height: 86px;
}
#header-inner {
max-width: 1200px;
margin: 0 auto;
}
#logo {
margin: 20px;
float: left;
width: 200px;
height: 60px;
background: url(https://res.cloudinary.com/dgpmuegqe/image/upload/v1492571257/RD_ocobwj.png) no-repeat center;
}
/*---start navigation---*/
nav {
float: right;
padding: 25px 20px 0 0;
}
#menu-icon {
display: hidden;
width: 40px;
height: 40px;
background: url(https://res.cloudinary.com/dgpmuegqe/image/upload/v1492571257/nav_xe79ju.png) center;
}
a:hover#menu-icon {
border-radius: 4px 4px 0 0;
}
ul {
list-style-type: none;
}
nav ul li {
font-size: 150%;
display: inline-block;
float: left;
padding: 10px;
}
nav ul li a {
color: #F5F5F5;
text-decoration: none;
}
nav ul li a:hover {
color: #C3D7DF;
}
.current {
color: #C3D7DF;
}
/*---end of navigation---*/
.banner {
width: 100%;
background-color: #6991AC;
}
.banner-inner {
max-width: 1100px;
margin: 0 auto;
}
.one-fourth {
width: 25%;
float: left;
text-align: center;
}
#html {
background-color: #F1AA90;
}
#css {
background-color: #8BE9AD;
}
#seo {
background-color: #AADCD2;
}
#social {
background-color: #A2b2C1;
}
.one-fourth i {
color: #F0F0F0;
font-size: 500%;
padding: 13% 0 4% 0;
}
.inner-wrapper {
float: left;
width: 100%;
background-color: #C3D7DF;
}
article {
float: left;
width: 50%;
margin; 0 auto;
height: auto;
}
#tablet {
background-color: #C3D7DF;
}
aside {
width: 50%;
float: right;
margin: 0 auto;
height: auto;
}
#tablet2 {
background-color: #A2B1C1;
}
#mobile {
background-color: #BEB9AD;
}
#desktop {
background-color: #F1AA90;
}
.inner-wrapper-2 {
width: 100%;
float: left;
background-color: #C3D7DF;
}
.inner-wrapper-3 {
width: 100%;
float: left;
background-color: #AADCD2;
}
.one-third {
width: 33.33333333%;
float: left;
text-align: center;
}
#google {
background-color: #A2B1C1;
}
#marketing {
background-color: #BEB98D;
}
#customers {
background-color: #AADCD2;
}
#smelly {
background-color: #AADCD2;
padding: 0 0 1%;
clear: both;
}
/*--footer---*/
footer {
background-color: #6991AC;
width: 100%;
}
.social {
list-style-type: none;
text-align: center;
}
.social li {
display: inline;
}
.social i {
font-size: 450%;
margin: 1%;
padding: 5% 5% 5% 4%;
color: #C3D7DF;
}
.social i:hover {
color: #f5f5f5;
}
/*--- begining of second footer---*/
footer.second {
border-top: 2px solid #AADCD2;
background-color: #544859;
max-height: 35px;
}
footer.second p{
text-align: center;
}
/*---media start----*/
@media screen and (max-width: 768px) {
h2 {
font-size: 150%;
}
h3 {
font-size: 125%;
}
p {
font-size: 110%;
}
header {
position: absolute;
}
#logo {
margin: 15px 0 20px 25px;
background: url(https://res.cloudinary.com/dgpmuegqe/image/upload/v1492571257/RD_mobile_sapd7z.png) no-repeat center;
}
#menu-icon {
display: inline-block;
}
nav ul, nav:active ul {
display: none;
z-index: 1000;
position: absolute;
background: #6991AC;
padding: 20px;
right: 20px;
top: 60px;
border: 1px solid #fff;
border-radius: 2px 0 2px 2px;
width: 50%;
}
nav:hover ul {
display: block;
}
nav li {
text-align: center;
width: 100%;
padding: 10px 0;
}
.banner {
padding-top: 86px;
}
.one-fourth {
float: left;
width: 100%;
}
.one-fourth i {
font-size: 350%;
padding: 4% 0 1% 0;
}
article {
width: 100%;
}
aside {
width: 100%;
}
.hand-mobile {
display: none;
}
.one-third {
width: 100%;
}
.social i {
font-size: 180%;
}
}
Also see: Tab Triggers