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.
<!--Start of Navigation-->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-brand"><img src="https://image.ibb.co/cywNpH/logo.png"></a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-main">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#meat">'Meat Big-G'</a></li>
<li><a href="#products">Our Products</a></li>
<li><a href="#testimonials">Testimonials</a></li>
<li><a href="#find">Find Us</a></li>
</ul>
</div>
</div>
</nav>
<!--End of Navigation-->
<!--Start of Home page -->
<div id="home">
<div class="landing-text">
<h1>BIG-G-FOODS</h1>
<h3>Spicy Meat at Best Price</h3>
<a href="#" class="btn btn-default btn-lg">Order Now</a>
</div>
</div>
<!--End of Home page-->
<!--Start of BIG-G section-->
<div id="meat"></div>
<div class="container text-center">
<h2 class="underline">'Meat Big-G'</h2>
<div class="raw">
<div class="col-md-8">
<img src="https://image.ibb.co/maJ8wx/pic1.png" alt="pic1" border="0">
<img src="https://image.ibb.co/graowx/pic2.png" alt="pic2" border="0">
</div>
<div class="col-md-4 text-center">
<p>
Big G Foods, your premium #YEG BBQ vendor. Offering a wide variety of the smokiest artisan beef and pork jerky you've ever tasted. Original, Montreal Steak, Smoked Habanero, Basically Bacon, Teriyaki, Sweet N' Spicy and The Sweetness just to name a few. We are also very proud of our mouth-watering applewood smoked pulled pork, we promise some of the best you will ever try right from the comfort of your own kitchen.
</p>
</div>
</div>
<div class="raw">
<div class="col-md-8">
<img src="https://image.ibb.co/dCUgGx/pic3.png" alt="pic3" border="0">
<img src="https://image.ibb.co/iwRiUH/pic4.png" alt="pic4" border="0">
</div>
<div class="col-md-4 text-center">
<p>
We also carry two delicious signature BBQ sauces. Our house sauce is Big G’s “Liquid Gold”, a true Kansas City-style tomato based sweet n' savoury all purpose BBQ sauce. Then we have Big G’s famous “Magic Mustard”. A South Carolina inspired grilling & dipping sauce perfect with pulled pork, great with pub style appetizers. Outstanding with any BBQ.
</p>
</div>
</div>
</div>
<!--End of BIG-G section-->
<!--Start product section-->
<div id="products"></div>
<div class="container text-center">
<h2 class="underline">Our Products</h2>
<div class="raw">
<div class="col-md-4">
<h3>Grub Rub & Red </h3>
<img src="https://image.ibb.co/n9aMGx/p4.png" alt="p4" border="0">
</div>
<div class="col-md-4">
<h3>Mean Beans</h3>
<img src="https://image.ibb.co/dS4gGx/p5.png" alt="p5" border="0">
</div>
<div class="col-md-4">
<h3>Jaw Droppin' Jerky</h3>
<img src="https://image.ibb.co/guRHpH/p6.png" alt="p6" border="0">
</div>
</div>
<div class="raw">
<div class="col-md-4">
<h3>Smoked Pulled</h3>
<img src="https://image.ibb.co/gF71Gx/p1.png" alt="p1" border="0">
</div>
<div class="col-md-4">
<h3>Liquid Gold</h3>
<img src="https://image.ibb.co/jpfz3c/p2.png" alt="p2" border="0">
</div>
<div class="col-md-4">
<h3>Rock 'N' Roll Slaw</h3>
<img src="https://image.ibb.co/i9cCOc/p3.png" alt="p3" border="0">
</div>
</div>
</div>
<!--End of Product section-->
<!--Start of Testimonials section-->
<div id="testimonials"></div>
<div class="container text-center">
<h2 class="underline">Testimonials</h2>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="lightbox">
<div class="item active">
<div class="raw text-center">
<div class="col-md-4">
<img src="https://image.ibb.co/maJ8wx/pic1.png" alt="pic1" border="0">
</div>
<div class="col-md-4">
<h2>
" Hands down the BEST jerky, sauce and bbq sides in town! Did I mention the pulled pork? Once you try it, you'll wonder how you lived without it" <br> Amanda L.
</h2>
</div>
</div>
</div>
<div class="item">
<div class="raw text-center">
<div class="col-md-4">
<img src="https://image.ibb.co/dCUgGx/pic3.png" alt="pic3" border="0">
</div>
<div class="col-md-4">
<h2>
“The best bbq sauce, period. Don't waste your time looking at the shelves in the grocery store, Big G's is all you need. Absolutely delicious!!! ” <br> Smith
</h2>
</div>
</div>
</div>
<div class="item">
<div class="raw text-center">
<div class="col-md-4">
<img src="https://image.ibb.co/iwRiUH/pic4.png" alt="pic4" border="0">
</div>
<div class="col-md-4">
<h2>
“Sampled the jerky and couldn't decide which to get, so we bought four flavours. Fantastic stuff! Way better than store bought.” <br> Scoot s
</h2>
</div>
</div>
</div>
<div><!--Start Slider Control-->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
<!--End of Testimonials section-->
<!--Start of Find-us section-->
<div id="find"></div>
<div class="container text-center">
<h2 class="underline">Find Us</h2>
<div class="raw">
<div class="col-md-6">
<img src="https://image.ibb.co/b7yiwx/contact.png" alt="contact" class="img-responsive">
</div>
<div class="col-md-6">
<form style="padding-top:40px;">
<input type="text" name="name" class="form-control form-group" placeholder="name">
<input type="email" name="email" class="form-control form-group" placeholder="email">
<input type="text" name="subject" class="form-control form-group" placeholder="subject">
<textarea class="form-control form-group" rows="5" placeholder="Message"></textarea>
<button type="button" class="btn btn-primary btn-block btn-lg">Send</button>
</form>
</div>
</div>
</div>
<!--End f Find-us section-->
<!--Start of footer section-->
<footer >
<div class="container-fluid text-center">
<div class="raw">
<div class="col-md-4">
<h3>Contact Us</h3>
<br>
<p class="text-center">780-907-MEAT (6328)<br>Edmonton, Alberta, Canada</p>
</div>
<div class="col-md-4">
<h3>Connect</h3>
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-google-plus"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-youtube"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
</div>
<div class="col-md-4">
</div>
</div>
</div>
</footer>
<!--End of footer section-->
/*--------------------*/
/* BASIC TYPOGRAPHY */
/*--------------------*/
html, body {
height: 100%;
width: 100%;
}
p {
font-size: 1.4em;
text-align: justify;
}
h2.underline{
margin: 30px;
}
h2.underline:after
{
width: 80px;
height: 2px;
background-color: #dd1616;
display: block;
content: "";
margin:0 auto;
margin-top: 10px;
}
.container {
padding: 80px 0 ;
}
.raw img {
padding: 10px;
}
/*--------------------*/
/* NAVIGATION */
/*--------------------*/
.navbar {
padding: 1% 0;
font-size: 1.2em;
}
.navbar-brand {
min-height: 70px;
padding: 0 0 10px 30px;
}
.navbar-brand img{
height: 80px;
width: 120px;
}
.navbar-inverse .navbar-nav li {
padding-top: 10px;
}
.navbar-inverse .navbar-nav li a {
color: #d5d5d5;
font-weight: bold;
text-align: center;
}
.navbar-inverse .navbar-nav li a:hover, .navbar-inverse .navbar-nav li a:active {
color: #fff;
}
/*--------------------*/
/* HOME SECTION */
/*--------------------*/
#home {
background: url(https://image.ibb.co/itR2Oc/background.png) no-repeat center fixed;
display: table;
height: 100%;
width: 100%;
position: relative;
background-size: cover;
}
.landing-text {
display: table-cell;
text-align: center;
vertical-align: middle;
color: #fff;
}
.landing-text h1 {
font-size: 500%;
font-weight: 700;
}
/*--------------------*/
/* FOOTER SECTION */
/*--------------------*/
footer {
width: 100%;
background-color:#524b4b;
padding:1%;
color:#fff;
}
footer .container-fluid i {
font-size: 200%;
color: #c3d7df;
margin: 1%;
padding: 3%;
}
footer .container-fluid i:hover {
color: #f5f5f5;
}
/*--------------------*/
/* Media Queries */
/*--------------------*/
@media screen and (max-width:768px) {
.landing-text h1 {
font-size: 300%;
}
.item h2 {
font-size: 150%;
}
}
Also see: Tab Triggers