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.
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>Apple</title>
</head>
<body>
<nav class="navbar sticky-top navbar-expand-md navbar-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar7">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand d-md-none ml-auto" href="#"><i class="fab fa-apple"></i></a>
<a class="navbar-brand d-md-none ml-auto" href="#"><i class="fas fa-shopping-bag"></i></a>
<div class="navbar-collapse collapse" id="navbar7">
<ul class="navbar-nav nav-fill w-75 mx-md-auto pl-4">
<li class="nav-item d-none d-md-block">
<a class="nav-link " href="#"><i class="fab fa-apple"></i></a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#">Mac</a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#">iPad</a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#">iPhone</a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#">Watch</a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#">TV</a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#">Music</a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#">Support</a>
</li>
<li class="nav-item">
<a class="nav-link text-left text-md-center" href="#"><i class="fas fa-search"></i></a>
</li>
<li class="nav-item d-none d-md-block">
<a class="nav-link text-left text-md-center" href="#"><i class="fas fa-shopping-bag"></i></a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.cc/l13v0u8u1/iphonex.png" class="img-fluid" alt="Responsive image"></a>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.org/za1qiu221/iphone8.png" alt="" class="img-fluid"></a>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.org/ckbshanbd/homepod.png" alt="" class="img-fluid">
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.org/ewalne5pl/watch.png" alt="" class="img-fluid"></a>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.org/o42u42xc9/ipad_pro.png" alt="" class="img-fluid"></a>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.org/azx9red09/imac_pro.png" alt="" class="img-fluid"></a>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.org/6ko1dbhux/apir_pod.png" alt="" class="img-fluid"></a>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img src="https://s26.postimg.org/67wn757ax/respons.png" alt="" class="img-fluid"></a>
</div>
</div>
</div>
<div class="container-fluid jumbotron d-none d-lg-block d-xl-block">
<footer class="row">
<div class="col-lg-2 ">
<ul>
<li><strong>Shop and Learn</strong></li>
<li>Mac</li>
<li>iPad</li>
<li>iPhone</li>
<li>Watch</li>
<li>TV</li>
<li>Music</li>
<li>iTunes</li>
<li>HomePod</li>
<li>iPod touch</li>
<li>Accessories</li>
<li>Gift Cards</li>
</ul>
</div>
<div class="col-lg-2">
<ul>
<li><strong>Apple Store</strong></li>
<li>Find a Store</li>
<li>Genius Bar</li>
<li>Today at Apple</li>
<li>Apple Camp</li>
<li>Field Trip</li>
<li>Apple Store App</li>
<li>Refurbished and Clearance</li>
<li>Financing</li>
<li>Reuse and Recycling</li>
<li>Order Status</li>
<li>Shopping Help</li>
</ul>
</div>
<div class="col-lg-2">
<ul>
<li><strong>For Education</strong></li>
<li>Apple and Education</li>
<li>Shop for College</li>
<li class="mt-2"><strong>For Business</strong></li>
<li>Apple and Business</li>
<li>Shop for Business</li>
</div>
<div class="col-lg-2">
<ul>
<li><strong>Account</strong></li>
<li>Manage Your Apple ID</li>
<li>Apple Store Account</li>
<li>iCloud.com</li>SS
<li class="mt-2"><strong>Apple Values</strong></li>
<li>Accessibility</li>
<li>Education</li>
<li>Environment</li>
<li>Inclusion and Diversity</li>
<li>Privacy</li>
<li>Supplier Responsibility</li>
</ul>
</div>
<div class="col-lg-2">
<ul>
<li><strong>About Apple</strong></li>
<li>Newsroom</li>
<li>Apple Leadership</li>
<li>Job Opportunities</li>
<li>Investors</li>
<li>Events</li>
<li>Contact Apple</li>
</ul>
</div>
</footer>
</div>
<!-- MOBILE FOOTER -->
<div class="container-fluid d-xl-none d-lg-none d-md-block d-sm-block d-block col-lg-12 col-xs-12 col-md-12 col-xl-12">
<ul class="list-group">
<li class="list-group-item"><strong>Shop and Learn</strong> <i class="fas fa-plus" style="font-size: 7px; float: right;"></i></li>
<li class="list-group-item"><strong>Apple Store</strong> <i class="fas fa-plus" style="font-size: 7px; float: right;"></i></li>
<li class="list-group-item"><strong>For Education</strong> <i class="fas fa-plus" style="font-size: 7px; float: right;"></i></li>
<li class="list-group-item"><strong>For Business</strong> <i class="fas fa-plus" style="font-size: 7px; float: right;"></i></li>
<li class="list-group-item"><strong>Account</strong> <i class="fas fa-plus" style="font-size: 7px; float: right;"></i></li>
<li class="list-group-item"><strong>Apple Values</strong> <i class="fas fa-plus" style="font-size: 7px; float: right;"></i></li>
<li class="list-group-item"><strong>About</strong> <i class="fas fa-plus" style="font-size: 7px; float: right;"></i></li>
</ul>
<p class="text-muted pt-5" style="font-size: 12px;">More ways to shop: Visit an<a href="#"> Apple Store</a>, call 1-800-MY-APPLE, or <a href="#">find a reseller</a></p>
<div class="d-inline">
<img src="https://s26.postimg.org/jye5cgq4p/murica.png" class="img-fluid " width="20px" height="20px">
</div>
<div class="d-inline" style="font-size: 11px;"><a href="#">United States</a></div>
<p class="text-muted pt-3" style="font-size: 12px;">Copyright ©2018 Apple Inc. All rights reserved.</p>
<p class="text-muted" style="font-size: 12px;">Privacy | Policy | Terms of Use | Sales and Refunds | Legal | Site Map</p>
</div>
<!-- /MOBILE FOOTER -->
<!-- DESKTOP FOOTER -->
<div class="d-none d-lg-block d-xl-block">
<div class="pl-5 col-lg-12 col-md-12 col-xl-12 text-muted find allbot bottm1" style="font-size: 11px;">
<p>More ways to shop: Visit an<a href="#"> Apple Store</a>, call 1-800-MY-APPLE, or <a href="#">find a reseller</a></p>
</div>
<hr style="width:60%;">
<div class="d-inline container-fluid text-center text-muted allbot bottm1" style="font-size: 10px; margin-left: 30px;">Copyright ©2018 Apple Inc. All rights reserved.</div>
<div class="d-inline container-fluid bottm1" style="font-size: 10px;">Privacy | Policy | Terms of Use | Sales and Refunds | Legal | Site Map</div>
<div class="d-inline container-fluid bottm1" style="font-size: 10px;"> <img src="https://s26.postimg.org/jye5cgq4p/murica.png" class="img-fluid d" width="20px" height="20px"></div>
<div class="d-inline col-3 bottm1 pr-5" style="font-size: 11px;"><a href="#">United States</a></div>
</div>
<!-- <div class="d-none d-lg-block d-xl-block">
<div class="pl-5 col-lg-12 col-md-12 col-xl-12 text-muted find allbot bottm1" style="font-size: 11px;">
<p>More ways to shop: Visit an<a href="#"> Apple Store</a>, call 1-800-MY-APPLE, or <a href="#">find a reseller</a></p>
</div>
<hr style="width:60%">
<div class="d-inline container-fluid text-center text-muted allbot bottm1" style="font-size: 10px; margin-left: 30px;">Copyright ©2018 Apple Inc. All rights reserved.</div>
<div class="d-inline container-fluid bottm1" style="font-size: 10px;">Privacy | Policy | Terms of Use | Sales and Refunds | Legal | Site Map</div>
<div class="d-inline container-fluid bottm1" style="font-size: 10px;"> <img src="https://s26.postimg.org/jye5cgq4p/murica.png" class="img-fluid d" width="20px" height="20px"></div>
<div class="d-inline col-3 bottm1 pr-5" style="font-size: 11px;"><a href="#">United States</a></div>
</div> -->
<!-- /DESKTOP FOOTER -->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>
body {
overflow-x: hidden;
padding-right: 0px;
}
.apple_logo {
padding-left: 200px;
}
.navbar {
padding: 1px !important;
background: rgba(0, 0, 0, 0.8) !important;
padding-bottom: 5px !important;
}
ul.navbar-nav li.nav-item a.nav-link {
font-size: 14px;
color: white;
}
.navbar-dark .navbar-nav .nav-link,
.navbar-toggler i {
color: #f2f2f2 !important;
}
footer ul {
list-style: none;
margin: 0;
padding: 0;
font-size: 11px;
line-height: 1.45455;
font-weight: 400;
letter-spacing: 0.005em;
font-family: "Open Sans";
color: #333;
min-width: 1024px;
overflow: hidden;
position: relative;
z-index: 1;
}
.allbot {
position: relative;
left: 200px;
}
.bottm1 {
position: relative;
left: 300px;
}
.list-group-item {
font-size: 11px;
}
.pr {
padding-right: 890px !important;
}
@media (max-width: 400px) {
.xs-none {
display: none !important;
}
}
Also see: Tab Triggers