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 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>
<head>
<title>Netflix</title>
<meta charset="utf-8">
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body class="body">
<div class="container-fluid hero">
<div class="row">
<div class="col-md-12 nav-bar">
<img class="logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Netflix_2015_logo.svg/2000px-Netflix_2015_logo.svg.png">
<div>
<a class="nav-bar-link" href="#">Log In </a>
<a class="nav-bar-link menu-trigger" href="#"><i class="fas fa-bars"></i></a>
</div>
</div>
<div class="carousel">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="https://www.elle.pl/uploads/media/default/0004/43/serial-dark-od-netflix.jpeg" alt="First slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="http://redrumblogdecine.com/wp-content/uploads/2017/10/Narcos-Temporada-3-Netflix.jpg" alt="Second slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="https://cdn3.dualshockers.com/wp-content/uploads/2017/08/black-mirror-9.png" alt="Third slide">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="col-md-12 texto">
<div class="intro">
<h1 class="titulo">Tu próxima historia, ahora</h1>
<p class="sub">DISFRUTA DONDE QUIERAS. CANCELA CUANDO QUIERAS.</p>
</div>
<div class="button">
<button type="button" class="btn btn0 btn-sm">DISFRUTA UN MES GRATIS</button>
</div>
</div>
</div>
</div>
</div>
<div class="container populares">
<div class="row">
<div class="col-md-12 pop">
<p class="sub1">POPULARES EN NETFLIX</p>
<hr class="line">
</div>
</div>
<div class="row">
<div class="col-md-6 movie chica"></div>
<div class="col-md-6 movie1 casa"></div>
</div>
<div class="row">
<div class="col-md-6 nombre">
<p class="sub1">LA CHICA DANESA</p>
</div>
<div class="col-md-6 nombre">
<p class="sub1">LA CASA DE PAPEL</p>
</div>
</div>
<div class="row">
<div class="col-md-6 movie grey"></div>
<div class="col-md-6 movie1 cuando"></div>
</div>
<div class="row">
<div class="col-md-6 nombre">
<p class="sub1">CINCUENTA SOMBRAS DE GREY</p>
</div>
<div class="col-md-6 nombre">
<p class="sub1">CUANDO NOS CONOCIMOS</p>
</div>
</div>
<div class="row">
<div class="col-md-6 movie things"></div>
<div class="col-md-6 movie bad"></div>
</div>
<div class="row">
<div class="col-md-6 nombre1">
<p class="sub1">STRANGER THINGS</p>
</div>
<div class="col-md-6 nombre1">
<p class="sub1">BREAKING BAD</p>
</div>
</div>
</div>
<div class="container cancela">
<div class="row">
<div class="col-md-12 pop">
<p class="sub1">SIN COMPROMISOS CANCELA ONLINE CUANDO QUIERAS</p>
<hr class="line">
</div>
</div>
<div class="row">
<div class="col-md-12 imgcan">
<a class="no" href="https://ibb.co/cHRbzc"><img src="https://preview.ibb.co/n4rn5H/Untitled_1_04.png" alt="Untitled_1_04" border="0"></a>
</div>
<div class="col-md-12 cancelar">
<h2 class="titulo">Si piensas que Netflix no es lo tuyo,</h2>
<h2 class="titulo2">no hay problema.</h2>
<p class="sub2">SIN COMPROMISO. CANCELA ONLINE CUANDO QUIERAS.</p>
</div>
<div class="col-md-12 btncan">
<div class="button">
<button type="button" class="btn btn1 btn-lg">DISFRUTA UN MES GRATIS</button>
</div>
</div>
</div>
</div>
<div class="container donde">
<div class="row">
<div class="col-md-12 pop1">
<p class="sub1">VE DESDE DONDE QUIERAS</p>
<hr class="line">
</div>
</div>
<div class="row">
<div class="col-md-12 pop1">
<p class="sub2">Ve películas y programas de TV cuando y donde quieras, personalizados para ti.</p>
</div>
</div>
<div class="row">
<div class="col-md-4 disp tele"></div>
<div class="col-md-4 disp1 phone"></div>
<div class="col-md-4 disp compu"></div>
</div>
<div class="row">
<div class="col-md-4">
<p class="sub2">Ve Netflix en tu TV</p>
</div>
<div class="col-md-4">
<p class="sub2">Disfruta al instante o descarga videos para más tarde</p>
</div>
<div class="col-md-4">
<p class="sub2">Usa cualquier computadora</p>
</div>
</div>
<div class="row">
<div class="col-md-4">
<p class="cuerpo">Smart TV, PlayStation, Xbox, Chromecast, Apple TV, reproductores de Blu-ray y más.</p>
</div>
<div class="col-md-4">
<p class="cuerpo">Disponible en tu teléfono o tablet, vayas donde vayas.</p>
</div>
<div class="col-md-4">
<p class="cuerpo">Ve directamente en Netflix.com.</p>
</div>
</div>
<div class="row">
<div class="col-md-12 btncan">
<div class="button">
<button type="button" class="btn btn2 btn-lg">DISFRUTA UN MES GRATIS</button>
</div>
</div>
</div>
</div>
<div class="container precio">
<div class="row">
<div class="col-md-12 pop1">
<p class="sub1">ELIGE TU PRECIO</p>
<hr class="line">
</div>
</div>
<div class="row">
<div class="col-md-12 pop1">
<p class="sub2">Elige un plan y ve lo que quieras en Netflix.</p>
</div>
</div>
<div class="row">
<div class="col-md-12 tabla">
<table id="precios">
<tr class="tr-pre">
<th></th>
<th class="tabla-title">básico</th>
<th class="tabla-title">estándar</th>
<th class="tabla-title">premium</th>
</tr>
<tr class="tr-pre">
<td class="tabla-content">El precio mensual después de que termina el mes gratis el 4/04/18</td>
<td class="tabla-num"><i class="fas fa-dollar-sign tabla-icon"></i> 7.99</td>
<td class="tabla-num"><i class="fas fa-dollar-sign tabla-icon"></i> 9.99</td>
<td class="tabla-num"><i class="fas fa-dollar-sign tabla-icon"></i> 11.99</td>
</tr>
<tr class="tr-pre">
<td class="tabla-content1">HD disponible</td>
<td><i class="fas fa-minus tabla-icon1"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
</tr>
<tr class="tr-pre">
<td class="tabla-content"> ULTRA HD disponible</td>
<td><i class="fas fa-minus tabla-icon1"></i></td>
<td><i class="fas fa-minus tabla-icon1"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
</tr>
<tr class="tr-pre">
<td class="tabla-content1">Pantallas en las que puedes ver al mismo tiempo</td>
<td class="tabla-num">1</td>
<td class="tabla-num">2</td>
<td class="tabla-num">4</td>
</tr>
<tr class="tr-pre">
<td class="tabla-content">Ve en tu laptop, TV, teléfono y tablet</td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
</tr>
<tr class="tr-pre">
<td class="tabla-content1">Películas y programas de TV ilimitados</td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
</tr>
<tr class="tr-pre">
<td class="tabla-content">Cancela en cualquier momento</td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
</tr>
<tr class="tr-pre">
<td class="tabla-content1">El primer mes es gratis</td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
<td><i class="fas fa-check tabla-icon2"></i></td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-md-12 btncan">
<div class="button">
<button type="button" class="btn btn3 btn-lg">DISFRUTA UN MES GRATIS</button>
</div>
</div>
</div>
</div>
<div class="container-fluid footer">
<div class="row">
<div class="col-md-4">
<img class="logo1" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Netflix_2015_logo.svg/2000px-Netflix_2015_logo.svg.png">
</div>
<div class="col-md-4 con-foot">
<td><p class="foot-content" href="#">Preguntas frecuentes</p></td>
<td><p class="foot-content" href="#">Centro de ayuda</p></td>
<td><a class="foot-content" href="#">Cuenta</p></td>
<td><a class="foot-content" href="#">Prensa</p></td>
<td><a class="foot-content" href="#">Relaciones con inversionistas</p></td>
<td><a class="foot-content" href="#">Empleo</p></td>
<td><a class="foot-content" href="#">Formas de ver</a></td>
</div>
<div class="col-md-4 con-foot">
<td><a class="foot-content" href="#">Términos de uso</p></td>
<td><a class="foot-content" href="#">Privacidad</p></td>
<td><a class="foot-content" href="#">Preferencias de cookies</p></td>
<td><a class="foot-content" href="#">Información corporativa</p></td>
<td><a class="foot-content" href="#">Contáctanos</p></td>
<td><a class="foot-content" href="#">Prueba de velocidad</p></td>
<td><a class="foot-content" href="#">Originales de Netflix</a></td>
</div>
</div>
<div class="row">
<p class="foot-info">¿Preguntas? Llama al +1 (408) 600-1719 (USA)<p>
</div>
<div class="row">
<p class="foot-info">NETFLIX GUATEMALA<p>
</div>
<div class="row">
<div class="col-md-6">
<div class="dropdown">
<button class="btn btn4 btn-default dropdown-toggle" type="button" id="menu1" data-toggle="dropdown"><i class="fas fa-globe"></i> ESPAÑOL <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">INGLĒS</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">ALEMÁN</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">PORTUGUÉS</a></li>
</ul>
</div>
</div>
<div class="col-md-6">
<div class="col-md-12">
<div class="foo-icon-grupo">
<i class="fab fa-facebook-f foot-icon"></i>
<i class="fab fa-twitter foot-icon"></i>
<i class="fab fa-instagram foot-icon"></i>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
*{
box-sizing: border-box;
}
.body{
background-color: black;
}
.nav-bar{
padding: 0px;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 10;
background: black;
}
.logo{
width: 100px;
}
.nav-bar-link{
text-decoration: none;
color: #820610;
margin-right: 20px;
}
.nav-bar-link:hover{
text-decoration: none;
color:#E30B17;
}
.texto{
z-index:2;
position: relative;
bottom: 170px;
color: white;
align-content: center;
}
.titulo{
font-family: impact;
text-align: center;
color: white;
display: flex;
justify-content: center;
}
.sub{
position: relative;
font-family: avenir;
font-size: 14px;
text-align: center;
}
.button{
display: flex;
justify-content: center;
}
.btn0{
font-family: avenir;
color: white;
background: linear-gradient(#e70000,#410101);
border: none;
}
.btn0:hover{
background: linear-gradient(#410101,#e70000);
}
.populares{
padding: 10px;
}
.pop{
margin-top: -100px;
margin-bottom: 0px;
padding: 5px;
}
.sub1{
position: absolute;
font-family: avenir;
color: white;
font-size: 16px;
margin-top: -5px;
}
.line{
margin-right: 550px;
border-width: 5px;
border-color: #e70000;
}
.chica{
background-image: url(http://www.cliver.tv/img/peliculas/portadas/1387_48213.jpg)
}
.casa{
background-image: url(http://www.sinmordaza.com/wp-content/uploads/2018/03/La-casa-de-Papel-serie-Espana-2.jpg)
}
.grey{
background-image: url(http://www.anim-arte.com/wp-content/uploads/2015/03/Cincuenta-Sombras-de-Grey.jpg)
}
.cuando{
background-image: url(http://boomgers.com/wp-content/uploads/2018/02/BOOMGERS201802060001CNC.jpg)
}
.things{
background-image: url(https://i2.wp.com/hipertextual.com/files/2017/02/Stranger-Things.jpg?fit=2000%2C1008&ssl=1)
}
.bad{
background-image: url(https://mixfm.mx/wp-content/uploads/2016/09/breaking-bad-tv-100-best-tv-shows-mejores-programas.jpg)
}
.movie{
padding: 0 !important;
height: 200px;
background-repeat: no-repeat;
background-size: 130%;
background-position: center center;
display: flex;
align-items: flex-end;
transition: all .3s;
}
.movie:hover{
background-size: 220%;
opacity: 0.5;
}
.movie1{
padding: 0 !important;
height: 200px;
background-repeat: no-repeat;
background-size: 130%;
background-position: top center;
display: flex;
align-items: flex-end;
transition: all .3s;
}
.movie1:hover{
background-size: 220%;
opacity: 0.5;
}
.nombre{
padding: 10px;
padding-bottom: 40px;
}
.nombre1{
padding: 10px;
padding-bottom: 140px;
}
.titulo2{
font-family: impact;
text-align: center;
color: #e70000;
display: flex;
justify-content: center;
}
.no{
display:flex;
justify-content: center;
padding:0 !important;
margin: 0 !important;
}
.cancelar{
position: absolute;
top: -180px;
left: -20px;
z-index: 2;
}
.sub2{
font-family: avenir;
color: white;
font-size: 14px;
text-align: center;
padding-top: 20px;
text-transform: uppercase;
}
.btn1{
font-family: avenir;
color: white;
background: linear-gradient(#e70000,#410101);
border: none;
position: absolute;
top: -100px;
}
.btn1:hover{
background: linear-gradient(#410101,#e70000);
}
.tele{
background-image: url(http://server.myspace-shack.com/d23/04760c20-106b-4d24-8777-7cabdb8a1cf0.png)
}
.phone{
background-image: url(http://server.myspace-shack.com/d23/613a9bc2-faec-478b-b020-d6d444503c22.png)
}
.compu{
background-image: url(http://server.myspace-shack.com/d23/8fdc03d5-aad6-401d-86b8-da09143bc0e6.png)
}
.disp{
height: 150px;
background-repeat: no-repeat;
background-size: 50%;
background-position: top center;
display: flex;
align-items: flex-end;
transition: all .3s;
}
.disp:hover{
background-size: 60%;
opacity: 0.4;
}
.disp1{
height: 150px;
background-repeat: no-repeat;
background-size: 30%;
background-position: top center;
display: flex;
align-items: flex-end;
transition: all .3s;
}
.disp1:hover{
background-size: 35%;
opacity: 0.4;
}
.cuerpo{
margin-bottom: 20px;
font-family: avenir;
color: #4d4d4d;
font-size: 12px;
text-align: center;
padding-top: 0px;
text-transform: uppercase;
}
.btn2{
font-family: avenir;
color: white;
background: linear-gradient(#e70000,#410101);
border: none;
margin: 20px;
margin-bottom: 40px;
}
.btn2:hover{
background: linear-gradient(#410101,#e70000);
}
.tabla{
display:flex;
justify-content: center;
}
.tabla-title{
font-family: avenir;
color: white;
font-size: 12px;
text-align: center;
text-transform: uppercase;
height: 50px;
width: 15%;
}
.tabla-content{
font-family: avenir;
color: #4d4d4d;
font-size: 14px;
text-align: left;
text-transform: uppercase;
text-decoration: none;
}
.tabla-content1{
font-family: avenir;
color: #808080;
font-size: 14px;
text-align: left;
text-transform: uppercase;
text-decoration: none;
}
.tabla-num{
font-family: avenir;
color: #808080;
font-size: 15px;
text-align: center;
text-transform: uppercase;
text-decoration: none;
}
.tabla-icon{
color: #e70000;
font-size: 15px;
text-align: center;
}
.tabla-icon1{
color: #4d4d4d;
font-size: 15px;
margin: auto;
display: block;
}
.tabla-icon2{
color: #e70000;
font-size: 15px;
text-align: center;
margin: auto;
display: block;
}
tr:hover {background-color: #282828;}
.btn3{
font-family: avenir;
color: white;
background: linear-gradient(#e70000,#410101);
border: none;
margin: 20px;
margin-bottom: 40px;
margin-top: 60px;
}
.btn3:hover{
background: linear-gradient(#410101,#e70000);
}
.footer{
background-color: white;
}
.logo1{
width: 180px;
margin: 20px;
margin-left: 40px;
}
.con-foot{
margin-top: 15px;
margin-bottom: 10px;
}
.foot-content{
font-family: avenir;
color: black;
font-size: 12px;
text-align: left;
padding: 1px;
margin: 1px;
text-transform: uppercase;
text-decoration: none;
flex-wrap: wrap;
}
.foot-content:hover{
color: #e70000;
text-decoration: none;
font-weight: bold;
}
.foot-info{
font-family: avenir;
color: black;
font-size: 14px;
text-align: left;
padding: 1px;
margin: 1px;
margin-left: 40px;
text-transform: uppercase;
text-decoration: none;
}
.lengu{
background-color:black;
max-height:50px;
max-width: 160px;
padding: 10px;
display: flex;
justify-content: center;
margin: 20px;
margin-left: 80px;
}
.foot-icon{
color: #e70000;
font-size: 45px;
margin-left:40px;
margin-right: 40px;
margin-top: 20px;
}
.foot-icon:hover{
color: black;
}
.btn4{
font-family: avenir;
color: white;
background-color: black;
border: none;
margin-left: 30px;
margin-bottom: 80px;
margin-top: 20px;
}
.btn4:hover{
background: linear-gradient(#410101,#e70000);
}
Also see: Tab Triggers