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.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Your description goes here">
<meta name="keywords" content="mma, woman, gym, boxing, champions">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Level Ground</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Libre+Caslon+Text:wght@400;700&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700;800&family=Source+Sans+Pro&family=Source+Serif+Pro:wght@400;600&display=swap"
rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Libre+Caslon+Text:wght@400;700&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700;800&family=Oswald:wght@400;500;600;700&family=Roboto+Condensed:wght@400;700&family=Source+Sans+Pro&family=Source+Serif+Pro:wght@400;600&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- external CSS link -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/98e4ffa652.js" crossorigin="anonymous"></script>
</head>
<body>
<section class="top-wrapper">
<header>
<nav>
<ul>
<li><a href="#">Classes</a></li>
<li><a href="#">Hire Us</a></li>
</ul>
</nav>
<a href="" class="logo">
<img src="https://github.com/NadineJackson1/levelGroundWomensGym/blob/main/L.png?raw=true" alt="logo">
</a>
<a href="" class="btn"><span>Donate</span></a>
</header>
<main class="clear">
<h1>WHERE GRIT MEETS OPPORTUNITY</h1>
<p>A dedicated space for women to feel safe, supported, and challenged to see real results.</p>
<div><span>Watch the video</span>
</div>
</main>
</section>
<section class="why">
<h2>WHY</h2>
<p>Being part of a women-only gym means there are more equipment and classes catered toward women and the female body.
Women's only gyms allow members to work out together in a comfortable, positive atmosphere. Each new day is a new opportunity to improve yourself, and there is not time like the present.</p>
</section>
<section class="two-section">
<section class="inner">
<section>
<img src="https://github.com/NadineJackson1/levelGroundWomensGym/blob/main/logan-weaver-lgnwvr-9D_rUDe7xvA-unsplash.jpg?raw=true" alt="">
<h3>VISIT THE GYM</h3>
<p>This is a unique fitness studio where members truly work and play hard. Meet the Coaches. Get your free trial membership today!</p>
<button>SEE CLASSES</button>
</section>
<section>
<img src="https://github.com/NadineJackson1/levelGroundWomensGym/blob/main/sushil-ghimire-DC5akQJyH4I-unsplash.jpg?raw=true" alt="">
<h3>HAVE US VISIT YOU</h3>
<p>Level Ground brings the personal trainer, equipment, and workout to you! Our workouts are tailored to your body and how it works. You choose the location.</p>
<button>HIRE US</button>
</section>
</section>
</section>
<section class="volunteer">
<h2>VOLUNTEER WITH LEVEL GROUND</h2>
<p>Are you interested in supporting our community programs and becoming a volunteer? Help us make a difference by giving our clients the confidence to feel valued and supported.</p>
<button>Volunteer</button>
</section>
<footer>
<section class="footer-cover">
<section>
<ul>
<li><i class="fa-brands fa-facebook"></i></li>
<li><i class="fa-brands fa-twitter"></i></li>
<li><i class="fa-solid fa-envelope"></i></li>
</ul>
<div class="footer-nav clear">
<div class="site">
<span>Site Map</span>
<ul>
<li><a href="#">Classes</a></li>
<li><a href="#">Hire Us</a></li>
</ul>
</div><br>
<div class="site">
<span>Contribute</span>
<ul>
<li><a href="#">Give</a></li>
<li><a href="#">Volunteer</a></li>
</ul>
</div>
</div>
</section>
<section class="right-footer">
<span class="bold">
Level Ground<br>
Women's Gym
</span>
<br><br>
<span>
927 Silk street<br>
Boston MA ,12029<br>
777-951-7013<br>
levelground@womensgym.org<br>
</span>
</section>
</section>
<hr>
<section class=" bottom-footer clear">
<p>
Level Ground Women's Gym is a tax exempt organization. EIN 46-2012908
</p>
<a href="">
<img src="https://github.com/NadineJackson1/levelGroundWomensGym/blob/main/L.png?raw=true" alt="">
</a>
</section>
</footer>
</body>
</html>
/* Box Model Hack */
* {
box-sizing: border-box;
margin:0;
padding:0;
font-family: Open Sans;
}
/* Clear fix hack */
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clear {
clear: both;
}
/******************************************
/* BASE STYLES
/*******************************************/
body {
}
.top-wrapper{
background-image: url("https://github.com/NadineJackson1/levelGroundWomensGym/blob/main/jonathan-borba-H6wTktsFxik-unsplash.jpg?raw=true");
background-size:cover;
background-position: 50% 100%;
min-height:100vh;
padding:0 5%;
}
section{
overflow: hidden;
}
header > a{
display:inline-block;
text-align: right;
padding-top:20px;
}
header > a.logo{
text-align: center;
padding-top:10px;
}
header > a.logo img{
width:150px;
}
.btn > span{
text-decoration: none;
padding:5px 20px;
background-color: orange;
border-radius: 5px;
color:#fff;
font-size: 0.8rem;
font-weight: 700;
}
header nav, header > a{
float:left;
width:33.33%;
text-decoration: none;
}
header nav ul{
list-style-type: none;
overflow: hidden;
}
header nav ul li a{
text-transform:uppercase;
font-weight: 600;
color:#fff;
float:left;
font-size:0.9rem;
text-decoration:none;
padding-right:10px;
display: inline-block;
padding-top: 20px;
}
main{
padding-top:200px;
}
main h1 , main p{
text-align: center;
}
main h1{
font-size: 4rem;
font-family: Oswald;
color:white;
margin:0;
text-shadow: 3px 3px 6px #222;
}
main p{
padding-top:20px;
width:70%;
margin:auto;
color: #fff;
line-height: 1.5;
text-shadow: 3px 3px 6px #555;
}
main div{
text-align: center;
margin-top:20px;
}
main div span{
color:white;
font-weight: 700;
}
section.why{
padding:80px 0 120px;
}
section.why h2 , section.why p {
text-align:center;
font-size: 15px;
}
section.why h2{
font-size: 35px;
font-family: Oswald;
font-weight: bold;
}
section.why p{
width:50%;
margin: auto;
padding-top:30px;
line-height: 1.6;
}
.two-section{
background-image: url('https://github.com/NadineJackson1/levelGroundWomensGym/blob/main/annie-spratt-6a3nqQ1YwBw-unsplash.jpg?raw=true');
color:white;
padding:10% 0;
text-align: center;
}
.two-section > .inner{
width:80%;
margin:auto;
}
.two-section > .inner > section{
float:left;
width:45%;
}
.two-section > .inner > section + section{
float:right;
}
.two-section > .inner > section img{
width:50%;
height:40vh;
border:3px solid white;
}
.two-section > .inner > section h3{
text-align:center;
margin-top:50px;
font-size: 30px;
font-family:Oswald;
}
.two-section > .inner > section p{
padding-top: 20px;
text-align: center;
font-size: 15px;
line-height: 1.7;
}
.two-section > .inner > section button , .volunteer button{
margin-top:30px;
padding:10px 40px;
background: none;
border:1px solid white;
font-family: Oswald;
color:white;
font-weight: 600;
transition:0.3s;
}
.two-section > .inner > section button:hover{
background-color: white;
color:#333;
}
.volunteer{
padding:80px 0 120px 0;
text-align: center;
}
.volunteer h2{
font-family: Oswald;
text-align: center;
font-size: 35px;
}
.volunteer p{
width:50%;
margin:auto;
text-align:center;
padding-top:30px;
line-height: 1.7;
font-size: 15px;
}
.volunteer button{
border-color:#333;
color:#333;
text-transform: uppercase;
}
.volunteer button:hover{
color:#fff;
background-color: #333;
}
/******************************************
/* LAYOUT
/*******************************************/
footer {
padding-top:3%;
background-color: #161f2a;
}
.footer-cover{
width:90%;
margin:auto;
}
.footer-cover > section{
float:left;
width:50%;
}
.footer-cover > section+section{
float:right;
width:50%;
}
.footer-cover section ul li{
float:left;
list-style: none;
}
.footer-cover section ul li i{
color:white;
font-size: 20px;
margin-right:20px;
}
.footer-nav .site{
padding-top:30px;
}
.footer-nav .site span{
color:#999;
font-weight: 600;
font-family: Oswald;
text-transform: uppercase;
}
.footer-nav .site ul{
list-style-type: none;
padding-top:10px;
}
.footer-nav .site ul li a{
margin-right: 30px;
font-size: 14px;
text-decoration:none;
color:white;
font-weight: 600;
}
.right-footer{
text-align:right;
}
.right-footer span{
font-size: 15px;
line-height: 1.5;
color:white;
}
.right-footer .bold{
color:white;
font-weight: bold;
font-size: 15px;
line-height: 1.7;
}
footer hr{
width:90%;
margin: auto;
margin-top:20px;
}
.bottom-footer{
width: 90%;
margin:auto;
padding:10px 0;
}
.bottom-footer p{
float:left;
font-size: 11px;
color:#fff;
}
.bottom-footer a{
float:right;
}
.bottom-footer img{
width:50px;
}
/******************************************
/* ADDITIONAL STYLES
/*******************************************/
Also see: Tab Triggers