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.
<header class="site-header">
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" aria-label="navigation">
<div class="container-fluid">
<a class="navbar-brand" href="https://reezhdesign.com" target="_blank" rel="noopener">ReeZh Design</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarMain" aria-controls="navbarMain" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarMain">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item active">
<a class="nav-link" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown05" data-bs-toggle="dropdown" aria-expanded="false">Dropdown</a>
<ul class="dropdown-menu dropdown-menu-light dropdown-menu-end" aria-labelledby="dropdown05">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="site-content">
<article class="hentry">
<header class="entry-header">
<div class="starter-template text-center py-5 px-3">
<h1>Bootstrap 5 Starter Template</h1>
<p class="lead">Use this document as a quick way to start a new project.
This pen is an example of using the Bootstrap 5 Framework.</p>
<p>current version Bootstrap 5.1.3</p>
</div>
<div class="sekrol d-none d-lg-block">
<div class="tikus">
<div class="pemutar"></div>
</div>
</div>
</header>
<section class="entry-content">
<div class="container alignfull d-flex justify-content-center align-items-center vh-100">
<h2>Work Canvas</h2>
</div>
<h2>Description</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus laudantium nam aliquid officiis dignissimos totam sequi ipsam velit et. Deserunt soluta est voluptates corporis molestias quo eveniet inventore neque error.</p>
<h3>How's To?</h3>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Optio neque animi eveniet nihil consectetur ea, quod nulla totam eius error dolore id sunt quis repudiandae repellendus non saepe aut, numquam corporis, amet aliquid ullam illo. Voluptatem asperiores harum, magni nobis voluptatibus distinctio illum dolorem itaque expedita laudantium praesentium blanditiis autem.</p>
<ul>
<li>Lorem ipsum dolor sit amet.</li>
<li>Facere numquam neque minima odit.</li>
<li>Ratione veniam eum accusantium debitis!</li>
<li>Magnam, nobis. Nulla, doloribus reprehenderit.</li>
<li>Culpa commodi cum ipsa provident!</li>
</ul>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione fugit nostrum molestiae omnis repellat distinctio quos. Officia optio, ad id totam delectus rerum exercitationem voluptatum error mollitia magnam debitis accusamus.</p>
<h4>Conclusion</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos ipsum numquam doloribus, alias aliquid eligendi natus quod iusto distinctio, in cum eos nam reiciendis? Voluptates dolore hic corporis. Aperiam, quibusdam.</p>
</section>
<footer class="entry-footer">
<div class="container py-5">
<div class="row">
<div class="col-12 col-md-6 text-start">
<p class="publish-on">Published: February 20<sup>th</sup>, 2020
</p>
</div>
<div class="col-12 col-md-6 text-end">
<p class="writer">Created by: ReeZh Design
</p>
</div>
</div>
</div>
</footer>
</article>
</main><!-- /.container -->
<footer class="site-footer">
<div class="container">
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-4 g-5">
<div class="col">
<div class="card border-0 h-100">
<div class="card-body">
<h4 class="card-title">About</h4>
<p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque, enim officiis quas beatae molestiae, nisi porro quia numquam sint, officia vel amet quos. Nemo quasi repellat cupiditate! Vero, nobis exercitationem.</p>
<a href="https://reezhdesign.com/" class="btn btn-sm btn-outline-primary" target="_blank" rel="noopener">More About Us</a>
</div>
</div>
</div>
<div class="col">
<div class="card border-0 h-100">
<div class="card-body">
<h4 class="card-title">Services</h4>
<p class="card-text">Lorem, ipsum dolor sit amet consectetur adipisicing elit.</p>
<ul>
<li><a href="#">User Interface & Experience</a></li>
<li><a href="#">Website Development</a></li>
<li><a href="#">Search Engine Optimization</a></li>
</ul>
<a href="https://reezhdesign.com/kontak/" class="btn btn-sm btn-outline-success" target="_blank" rel="noopener">Let's Talk</a>
</div>
</div>
</div>
<div class="col">
<div class="card border-0 h-100">
<div class="card-body">
<h4 class="card-title">Latest Posts</h4>
<ul>
<li><a href="#">Lorem ipsum dolor sit amet.</a></li>
<li><a href="">Necessitatibus, cumque? Laborum, at iusto.</a></li>
<li><a href="#">Minus nam natus pariatur cupiditate!</a></li>
<li><a href="#">Optio et deserunt maxime maiores.</a></li>
<li><a href="#">Quia sit repudiandae aperiam numquam.</a></li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card border-0 h-100">
<div class="card-body">
<h4 class="card-title">Address</h4>
<p class="card-text">Beverly Hills 5150, CA 90210</p>
<p class="card-text">Visit and connect with social media:</p>
<ul class="social-media list-inline fs-5">
<li class="list-inline-item"><a href="https://www.facebook.com/reezh" target="_blank" rel="noopener"><i class="bi-facebook"></i><span> Facebook</span></a></li>
<li class="list-inline-item"><a href="https://twitter.com/reezhdesign" target="_blank" rel="noopener"><i class="bi-twitter"></i><span>Twitter</span></a></li>
<li class="list-inline-item"><a href="https://www.instagram.com/reezhdesign" target="_blank" rel="noopener"><i class="bi-instagram"></i><span>Instagram</span></a></li>
<li class="list-inline-item"><a href="https://pinterest.com/reezhdesign" target="_blank" rel="noopener"><i class="bi-pinterest"></i><span>Pinterest</span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="container py-3 text-center">
<a href="https://reezhdesign.com" target="_blank" title="Jasa Website Bandung" rel="noopener">ReeZh Design</a>
</div>
<div class="container">
<div class="hstack w-100 justify-content-center">
<div class="form-check form-switch">
<label class="form-check-label ms-3" for="lightSwitch">
</label>
<input class="form-check-input" type="checkbox" id="lightSwitch" />
</div>
</div>
</div>
</footer>
// Google Fonts Import
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
// Bootstrap Icons Import
@import url("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css");
$primary: #003366;
$secondary: #e0e0e0;
$body-color: #444;
:root {
--entry-header-height: 100vh;
--entry-header-background: #{$secondary};
--entry-footer-background: #{$secondary};
--entry-footer-height: 25vh;
--site-footer-color: #999;
}
* {
outline: none;
}
html {
font-size: 16px;
}
body {
font-family: "Open Sans", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Montserrat", sans-serif;
font-weight: 600;
}
a {
text-decoration: none;
}
main {
min-height: 200vh;
}
// Site Style
.site-header {
}
.site-content {
}
.site-footer {
font-size: 0.85rem;
.card {
background-color: transparent;
color: inherit;
.card-title {
color: currentColor;
font-size: 1rem;
text-transform: uppercase;
}
.card-body {
color: currentColor;
ul {
margin-left: 0;
}
}
}
}
// Article Style
.hentry {
.entry-header {
display: flex;
flex-flow: column no-wrap;
justify-content: center;
align-items: center;
min-height: var(--entry-header-height);
}
.entry-header,
.entry-footer,
.entry-content {
> * {
max-width: 600px;
margin: 1.5rem auto;
padding-left: 1rem;
padding-right: 1rem;
}
ul {
padding-left: 2.5rem;
padding-right: 2.5rem;
}
> .container {
max-width: 1140px;
}
> .alignwide {
max-width: 1140px;
}
> .alignfull {
margin: 1.5rem 0;
max-width: 100%;
padding-left: 0;
padding-right: 0;
}
}
.entry-footer {
.publish-on,
.writer {
font-size: 0.85rem;
}
}
}
.social-media {
span {
display: none;
}
}
// mouse scroll icon
.sekrol {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translatex(-50%);
width: 27px;
height: 44px;
.tikus {
width: 3px;
padding: 5px 10px;
height: 30px;
border: 2px solid #fff;
border-radius: 15px;
border-color: $body-color;
opacity: 0.75;
box-sizing: content-box;
.pemutar {
width: 3px;
height: 10px;
border-radius: 25%;
background-color: $body-color;
animation-name: tikusscroll;
animation-duration: 1.5s;
animation-timing-function: cubic-bezier(0.15, 0.41, 0.69, 0.94);
animation-iteration-count: infinite;
}
}
}
@keyframes tikusscroll {
0% {
opacity: 0;
}
10% {
transform: translateY(0);
opacity: 1;
}
100% {
transform: translateY(15px);
opacity: 0;
}
}
// Height Variable
.vh-25 {
min-height: 25vh;
}
.vh-50 {
min-height: 50vh;
}
.vh-75 {
min-height: 75vh;
}
.vh-100 {
min-height: 100vh;
}
// Main Function
(function () {
if (!lightSwitch) {
return;
}
})();
Also see: Tab Triggers