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.
<!--Important link source from https://bootsnipp.com/snippets/ooa9M-->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
<footer id="dk-footer" class="dk-footer">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-4">
<div class="dk-footer-box-info">
<a href="index.html" class="footer-logo">
<img src="https://cdn.pixabay.com/photo/2016/11/07/13/04/yoga-1805784_960_720.png" alt="footer_logo" class="img-fluid">
</a>
<p class="footer-info-text">
Reference site about Lorem Ipsum, giving information on its origins, as well as a random Lipsum generator.
</p>
<div class="footer-social-link">
<h3>Follow us</h3>
<ul>
<li>
<a href="#">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-google-plus"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-instagram"></i>
</a>
</li>
</ul>
</div>
<!-- End Social link -->
</div>
<!-- End Footer info -->
<div class="footer-awarad">
<img src="images/icon/best.png" alt="">
<p>Best Design Company 2019</p>
</div>
</div>
<!-- End Col -->
<div class="col-md-12 col-lg-8">
<div class="row">
<div class="col-md-6">
<div class="contact-us">
<div class="contact-icon">
<i class="fa fa-map-o" aria-hidden="true"></i>
</div>
<!-- End contact Icon -->
<div class="contact-info">
<h3>Jaipur India</h3>
<p>5353 Road Avenue</p>
</div>
<!-- End Contact Info -->
</div>
<!-- End Contact Us -->
</div>
<!-- End Col -->
<div class="col-md-6">
<div class="contact-us contact-us-last">
<div class="contact-icon">
<i class="fa fa-volume-control-phone" aria-hidden="true"></i>
</div>
<!-- End contact Icon -->
<div class="contact-info">
<h3>95 711 9 5353</h3>
<p>Give us a call</p>
</div>
<!-- End Contact Info -->
</div>
<!-- End Contact Us -->
</div>
<!-- End Col -->
</div>
<!-- End Contact Row -->
<div class="row">
<div class="col-md-12 col-lg-6">
<div class="footer-widget footer-left-widget">
<div class="section-heading">
<h3>Useful Links</h3>
<span class="animate-border border-black"></span>
</div>
<ul>
<li>
<a href="#">About us</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">Projects</a>
</li>
<li>
<a href="#">Our Team</a>
</li>
</ul>
<ul>
<li>
<a href="#">Contact us</a>
</li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">Testimonials</a>
</li>
<li>
<a href="#">Faq</a>
</li>
</ul>
</div>
<!-- End Footer Widget -->
</div>
<!-- End col -->
<div class="col-md-12 col-lg-6">
<div class="footer-widget">
<div class="section-heading">
<h3>Subscribe</h3>
<span class="animate-border border-black"></span>
</div>
<p><!-- Don’t miss to subscribe to our new feeds, kindly fill the form below. -->
Reference site about Lorem Ipsum, giving information on its origins, as well.</p>
<form action="#">
<div class="form-row">
<div class="col dk-footer-form">
<input type="email" class="form-control" placeholder="Email Address">
<button type="submit">
<i class="fa fa-send"></i>
</button>
</div>
</div>
</form>
<!-- End form -->
</div>
<!-- End footer widget -->
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
<!-- End Col -->
</div>
<!-- End Widget Row -->
</div>
<!-- End Contact Container -->
<div class="copyright">
<div class="container">
<div class="row">
<div class="col-md-6">
<span>Copyright © 2019, All Right Reserved Seobin</span>
</div>
<!-- End Col -->
<div class="col-md-6">
<div class="copyright-menu">
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">Terms</a>
</li>
<li>
<a href="#">Privacy Policy</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
</div>
</div>
<!-- End col -->
</div>
<!-- End Row -->
</div>
<!-- End Copyright Container -->
</div>
<!-- End Copyright -->
<!-- Back to top -->
<div id="back-to-top" class="back-to-top">
<button class="btn btn-dark" title="Back to Top" style="display: block;">
<i class="fa fa-angle-up"></i>
</button>
</div>
<!-- End Back to top -->
</footer>
body { color: #ccc }
.footer-widget p {
margin-bottom: 27px;
}
p {
font-family: 'Nunito', sans-serif;
font-size: 16px;
color:white;
line-height: 28px;
}
.animate-border {
position: relative;
display: block;
width: 115px;
height: 3px;
background: #007bff; }
.animate-border:after {
position: absolute;
content: "";
width: 35px;
height: 3px;
left: 0;
bottom: 0;
border-left: 10px solid #fff;
border-right: 10px solid #fff;
-webkit-animation: animborder 2s linear infinite;
animation: animborder 2s linear infinite; }
@-webkit-keyframes animborder {
0% {
-webkit-transform: translateX(0px);
transform: translateX(0px); }
100% {
-webkit-transform: translateX(113px);
transform: translateX(113px); } }
@keyframes animborder {
0% {
-webkit-transform: translateX(0px);
transform: translateX(0px); }
100% {
-webkit-transform: translateX(113px);
transform: translateX(113px); } }
.animate-border.border-white:after {
border-color: #fff; }
.animate-border.border-yellow:after {
border-color: #F5B02E; }
.animate-border.border-orange:after {
border-right-color: #007bff;
border-left-color: #007bff; }
.animate-border.border-ash:after {
border-right-color: #EEF0EF;
border-left-color: #EEF0EF; }
.animate-border.border-offwhite:after {
border-right-color: #F7F9F8;
border-left-color: #F7F9F8; }
/* Animated heading border */
@keyframes primary-short {
0% {
width: 15%; }
50% {
width: 90%; }
100% {
width: 10%; } }
@keyframes primary-long {
0% {
width: 80%; }
50% {
width: 0%; }
100% {
width: 80%; } }
.dk-footer {
padding: 75px 0 0;
background-color: #151414;
position: relative;
z-index: 2; }
.dk-footer .contact-us {
margin-top: 0;
margin-bottom: 30px;
padding-left: 80px; }
.dk-footer .contact-us .contact-info {
margin-left: 50px; }
.dk-footer .contact-us.contact-us-last {
margin-left: -80px; }
.dk-footer .contact-icon i {
font-size: 24px;
top: -15px;
position: relative;
color:#007bff; }
.dk-footer-box-info {
position: absolute;
top: -122px;
background: #202020;
padding: 40px;
z-index: 2; }
.dk-footer-box-info .footer-social-link h3 {
color: #fff;
font-size: 24px;
margin-bottom: 25px; }
.dk-footer-box-info .footer-social-link ul {
list-style-type: none;
padding: 0;
margin: 0; }
.dk-footer-box-info .footer-social-link li {
display: inline-block; }
.dk-footer-box-info .footer-social-link a i {
display: block;
width: 40px;
height: 40px;
border-radius: 50%;
text-align: center;
line-height: 40px;
background: #000;
margin-right: 5px;
color: #fff; }
.dk-footer-box-info .footer-social-link a i.fa-facebook {
background-color: #3B5998; }
.dk-footer-box-info .footer-social-link a i.fa-twitter {
background-color: #55ACEE; }
.dk-footer-box-info .footer-social-link a i.fa-google-plus {
background-color: #DD4B39; }
.dk-footer-box-info .footer-social-link a i.fa-linkedin {
background-color: #0976B4; }
.dk-footer-box-info .footer-social-link a i.fa-instagram {
background-color: #B7242A; }
.footer-awarad {
margin-top: 285px;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-moz-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center; }
.footer-awarad p {
color: #fff;
font-size: 24px;
font-weight: 700;
margin-left: 20px;
padding-top: 15px; }
.footer-info-text {
margin: 26px 0 32px; }
.footer-left-widget {
padding-left: 80px; }
.footer-widget .section-heading {
margin-bottom: 35px; }
.footer-widget h3 {
font-size: 24px;
color: #fff;
position: relative;
margin-bottom: 15px;
max-width: -webkit-fit-content;
max-width: -moz-fit-content;
max-width: fit-content; }
.footer-widget ul {
width: 50%;
float: left;
list-style: none;
margin: 0;
padding: 0; }
.footer-widget li {
margin-bottom: 18px; }
.footer-widget p {
margin-bottom: 27px; }
.footer-widget a {
color: #878787;
-webkit-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s; }
.footer-widget a:hover {
color: #007bff; }
.footer-widget:after {
content: "";
display: block;
clear: both; }
.dk-footer-form {
position: relative; }
.dk-footer-form input[type=email] {
padding: 14px 28px;
border-radius: 50px;
background: #2E2E2E;
border: 1px solid #2E2E2E; }
.dk-footer-form input::-webkit-input-placeholder, .dk-footer-form input::-moz-placeholder, .dk-footer-form input:-ms-input-placeholder, .dk-footer-form input::-ms-input-placeholder, .dk-footer-form input::-webkit-input-placeholder {
color: #878787;
font-size: 14px; }
.dk-footer-form input::-webkit-input-placeholder, .dk-footer-form input::-moz-placeholder, .dk-footer-form input:-ms-input-placeholder, .dk-footer-form input::-ms-input-placeholder, .dk-footer-form input::placeholder {
color: #878787;
font-size: 14px; }
.dk-footer-form button[type=submit] {
position: absolute;
top: 0;
right: 0;
padding: 12px 24px 12px 17px;
border-top-right-radius: 25px;
border-bottom-right-radius: 25px;
border: 1px solid #007bff;
background: #007bff;
color: #fff; }
.dk-footer-form button:hover {
cursor: pointer; }
/* ==========================
Contact
=============================*/
.contact-us {
position: relative;
z-index: 2;
margin-top: 65px;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center; }
.contact-icon {
position: absolute; }
.contact-icon i {
font-size: 36px;
top: -5px;
position: relative;
color: #007bff; }
.contact-info {
margin-left: 75px;
color: #fff; }
.contact-info h3 {
font-size: 20px;
color: #fff;
margin-bottom: 0; }
.copyright {
padding: 28px 0;
margin-top: 55px;
background-color: #202020; }
.copyright span,
.copyright a {
color: #878787;
-webkit-transition: all 0.3s linear;
-o-transition: all 0.3s linear;
transition: all 0.3s linear; }
.copyright a:hover {
color:#007bff; }
.copyright-menu ul {
text-align: right;
margin: 0; }
.copyright-menu li {
display: inline-block;
padding-left: 20px; }
.back-to-top {
position: relative;
z-index: 2; }
.back-to-top .btn-dark {
width: 35px;
height: 35px;
border-radius: 50%;
padding: 0;
position: fixed;
bottom: 20px;
right: 20px;
background: #2e2e2e;
border-color: #2e2e2e;
display: none;
z-index: 999;
-webkit-transition: all 0.3s linear;
-o-transition: all 0.3s linear;
transition: all 0.3s linear; }
.back-to-top .btn-dark:hover {
cursor: pointer;
background: #FA6742;
border-color: #FA6742; }
Also see: Tab Triggers