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.
<body>
<header>
<nav class="navbar navbar-default navbar-fixed-top navbar-inner">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand brand" href="#">TREEPPO</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#works">Works</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<a name="home"></a>
<div class="container-fluid">
<div class="more-space row">
<div class="col-md-12">
<div class="text-center intro">
<h1>Hello there,</h1>
<h4>We are Treeppo.</h4><h4 class="red">A creative bunch who love code and design.</h4>
</div>
</div>
</div>
</div>
</div>
</header>
<!----ABOUT US---->
<div class="about-us" id="startchange">
<a name="about"></a>
<div class="container-fluid">
<div class="row text-center">
<div class="descript col-xs-12 col-sm-12 col-md-12">
<h1>ABOUT US</h1>
<p class="about-us-p">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<a href="#" class="team">Our Team</a>
</div>
</div>
</div>
</div>
<div class="break2 container-fluid text-center">
<h3>We love being busy!</h3>
</div>
<!----SERVICES---->
<div class="works">
<a name="works"></a>
<div class="container-fluid">
<div class="row">
<div class="text-center col-xs-12 col-sm-12 col-md-12">
<h1>WORKS</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-4">
<div class="thumbnail">
<img src="https://images.unsplash.com/photo-1615934066478-cf3395cdab18?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=934&q=80 934w" />
<div class="caption">
<h3>Travel Agency</h3>
<p>We made a website for a travel agency. Check it out!</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-md-4">
<div class="thumbnail">
<img src="https://images.unsplash.com/photo-1593642634443-44adaa06623a?ixid=MXwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=925&q=80 925w" />
<div class="caption">
<h3>Wine and Dine</h3>
<p>A website for an up and coming restuarant. Check it out!</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-md-4">
<div class="thumbnail">
<img src="https://images.unsplash.com/photo-1615944183270-2f16f0f3f826?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80 800w" />
<div class="caption">
<h3>Shoe Shine</h3>
<p>Check out what we did with Shoe Shine's website. An ecommerce site for shoes.</p>
</div>
</div>
</div>
</div>
<div class="space row">
<div class="col-xs-12 col-sm-4 col-md-4">
<div class="thumbnail">
<img src="https://images.unsplash.com/photo-1606936278588-046c8816a75e?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80 1000w" />
<div class="caption">
<h3>Traveller's Blog</h3>
<p>Take a look at our design of the Traveller's Blog. The website of a world traveller.</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-md-4">
<div class="thumbnail">
<img src="https://images.unsplash.com/photo-1547656807-9733c2b738c2?ixid=MXwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=934&q=80 934w" />
<div class="caption">
<h3>Digitize</h3>
<p>See our work on Digitize website. A digital marketing firm.</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-md-4">
<div class="thumbnail">
<img src="https://images.unsplash.com/photo-1615886490002-ae8172eea2de?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80" />
<div class="caption">
<h3>HeadPhones DotInc</h3>
<p>A website for HeadPhones DotInc's latest product. Take a look!</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="break1 container-fluid text-center">
<h3>Come connect with us!</h3>
</div>
<div class="contact text-center">
<a name="contact"></a>
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 text-center">
<h1>CONTACT</h3>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<h2 style="color: #FFF;">Website Designed And Created By</h2>
<a src="https://www.linkedin.com/in/tashfeen-choudhury/"><p class="linked-in-a" style="font-size: 50px;">Tashfeen Mustafa Choudhury</p></a>
<br/>
<br/>
<h3 style="color: #FFF;">Or, you could get in touch with us on social media</h3>
</div>
</div>
<div class="row social-media-row-1">
<div class="icon col-xs-6 col-sm-6 col-md-6">
<a href="https://www.facebook.com/tashfeen.choudhury"><i class="fa fa-facebook"></i></a>
</div>
<div class="icon col-xs-6 col-sm-6 col-md-6">
<a href="https://twitter.com/tashmchy"><i class="fa fa-twitter"></i></a>
</div>
</div>
<div class="row">
<div class="icon col-xs-6 col-sm-6 col-md-6">
<a href="https://www.linkedin.com/in/tashfeen-choudhury/"><i class="fa fa-linkedin"></i></a>
</div>
<div class="icon col-xs-6 col-sm-6 col-md-6">
<a href="https://github.com/tashfeenMustafa"><i class="fa fa-github"></i></a>
</div>
</div>
</div>
</div>
<footer>
<div class="container-fluid">
<div class="row">
<div class="text-center go-up-icon col-xs-12 col-sm-6 col-md-6">
<a href="#home"><i class="fa fa-angle-up"></i></a>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<p>Website Designed & Created By</p>
<a class="linked-in-a" src="https://www.linkedin.com/in/tashfeen-choudhury/">
<h5 style="font-size: 50px;">Tashfeen Mustafa Choudhury</h5>
</a>
</div>
</div>
</div>
</footer>
header {
background-color: #34262B;
background: url('https://images.unsplash.com/photo-1581291518857-4e27b48ff24e?ixid=MXwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80 1050w') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.more-space {
margin-bottom: 20%;
}
header h1 {
color: #34262B;
font-size: 150px;
}
h1 {
font-family: "Amatic SC", sans-serif;
}
.break1, .break2, .contact h2, .contact h3, p, header h4 {
font-family: "Coming Soon", sans-serif;
}
.social-media {
margin-top: 7%;
}
.intro {
margin-top: 12%;
}
header h4 {
color: #fff;
font-size: 28px;
font-weight: bold;
}
.red {
color: #c1292e;
font-weight: bold;
}
/**Navbar customs**/
nav ul li {
font-size: 17px;
font-family: "News Cycle";
}
.about-us a {
font-family: "News Cycle", serif;
}
.navbar-brand {
font-size: 25px;
font-family: "News Cycle";
}
.navbar-default {
background-color: #FDFFFC;
border: 0;
}
.navbar-default .navbar-brand {
margin-left: 5%;
color: #34262B;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #FDFFFC;
background-color: transparent;
}
.navbar-default .navbar-text {
color: #210A2A;
}
.navbar-default .navbar-nav > li > a {
color: #210A2A;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #F9F2F6;
background-color: transparent;
border-bottom: 1px solid #F9F2F6;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #F9F2F6;
background-color: #e7e7e7;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #F9F2F6;
background-color: transparent;
}
.navbar-default .navbar-toggle {
border-color: #ddd;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #ddd;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #888;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #e7e7e7;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
color: #555;
background-color: #e7e7e7;
}
.navbar-inner {
background: rgba(0, 0, 0, 0);
}
/**Navbar customs end**/
/***Services***/
.works {
}
.tabs {
background-color: #F26430;
border: 1px solid #210A20;
}
.works p {
margin-top: 10%;
}
.works h1 {
font-size: 100px;
margin-top: 7%;
margin-bottom: 5%;
}
.thumbnail {
margin-bottom: 12%
}
.thumbnail:hover {
-webkit-box-shadow: 2px 2px 2px 1px #ccc; /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
-moz-box-shadow: 2px 2px 2px 1px #ccc; /* Firefox 3.5 - 3.6 */
box-shadow: 2px 2px 2px 1px #ccc; /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}
.space {
margin-bottom: 10%;
}
.break1 {
background: url(https://images.unsplash.com/photo-1615933530038-314d91bb1039?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80) center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.break2 {
background: url(https://images.unsplash.com/photo-1615933530038-314d91bb1039?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80) center center fixed;
background-size: cover;
}
.break2 h3 {
color: #fff;
font-size: 70px;
margin-top: 15%;
margin-bottom: 15%;
}
.break1 h3 {
color: #fff;
font-size: 70px;
margin-top: 15%;
margin-bottom: 15%;
}
/**End of Services stylus***/
/***About us****/
.about-us {
background-color: #34262B;
}
.about-us h1 {
color: #C1292E;
font-size: 100px;
margin-top: 7%;
}
.about-us-p {
font-size: 20px;
color: #FDFFFC;
margin-left: 12%;
margin-right: 12%;
margin-top: 7%;
margin-bottom: 10%;
}
.descript {
margin-bottom: 15%;
}
.team {
margin-top: 25%;
border: 1px solid #FDFFFC;
padding: 20px 50px 20px 50px;
text-decoration: none;
color: #F9F2F6;
}
.team:hover {
text-decoration: none;
background: rgba(193, 41, 46, 0.4);
color: #F9F2F6;
}
/* Contact */
.contact {
background-color: #c1292e;
}
.contact h1 {
font-size: 100px;
margin-top: 7%;
}
.social-media-row-1 {
margin-top: 10%;
}
.contact i {
font-size: 1000%;
padding: 20% 0% 20% 0%;
}
.contact .icon {
border: 1px solid black;
}
.icon a {
color: #fff;
}
.icon:hover {
background-color: rgba(0, 0, 0, 0.5);
}
/* Footer */
footer {
background-color: #34292b;
}
.go-up-icon i {
color: white;
font-size: 400%;
margin-top: 15%;
border: 1px solid white;
padding: 2% 4% 3% 4%;
border-radius: 10%;
}
.go-up-icon i:hover {
background-color: rgba(100, 100, 100, 0.3);
}
footer p {
color: white;
padding-top: 5%;
}
@media screen and (max-width: 500px) {
header h1, .about-us h1, .works h1, .contact h1 {
font-size: 50px;
margin-bottom: 15%;
}
header h4 {
font-size: 20px;
margin-bottom: 15%;
}
.about-us-p {
font-size: 14px;
}
.contact i {
font-size: 500%;
}
.intro {
margin-top: 50%;
}
}
.linked-in-a {
color: #fff;
font-size: 300;
}
$(document).ready(function() {
var scroll_start = 0;
var startchange = $('#startchange');
var offset = startchange.offset();
if (startchange.length) {
$(document).scroll(function() {
scroll_start = $(this).scrollTop();
if (scroll_start > offset.top) {
$(".navbar-default").css('background-color', '#c1292e');
} else {
$('.navbar-default').css('background-color', 'transparent');
}
});
}
});
Also see: Tab Triggers