Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource

Packages

Add Packages

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.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <header id="header">
<nav id="nav-bar">
	<ul class="navbar">
		<li><a class="nav-link" href="#"><img id="header-img" src="https://assets.codepen.io/t-2181/hillstreet_logo_color1_1.png" alt="Boxing Logo"></a></li>
		<li id="businessname"><strong><a class="nav-title" href="#">Hill Street Boxing: <br>Long Beach</a></strong></li>
		<li><a class="nav-link" href="#history">History</a></li>
		<li><a class="nav-link" href="#train">Training</a></li>
    <li><a class="nav-link" href="#pictures">Photo Gallery</a></li>
    <li><a class="nav-link" href="#contact">Contact</a></li>
	</ul>
</nav>
</header>

<body>
<section class="section-content" id="main">
    
	
</section>
<section class="section-content" id="history">
		<ul>
      <h3 class="titles3">HOW WE GOT STARTED</h3>
			<li><i class="origins"></i><center>A neighborhood, family-friendly and full service boxing gym. In 2012, Hill Street Boxing was born into the world. Jorge Rodriguez is a retired professional fighter and has put his passion into training champs. He has been in the business for over 15 years working in various gyms and has decided it was time to open his own gym.
     
      <h3 id="train"  class="titles3">GYM FEATURES</h3>
          <ul class="features1">
        <li>Weight Room & Cardio</li> 
        <li>Two Boxing Rings in over 5,000 SQ. feet of space</li>
        <li>Private & Personal Training</li>
        <li>Heavy Bags, Speed Bags, & Double End Bags
        </li>
        <li>Treadmills, Jumpropes, everything needed to train for a big fight</li>  </ul>
        
        <br>
</section>
  <br>
  <br>
  <section class="section-content">
   <h2 class="titles3">Class Schedule & Description</h2>
  <hr>
  <div><ul class="titles4">
    <li>After School Youth Boxing & Fitness Group Classes for Kids (6-14)<hr>
      $105/Month for unlimited classes, 4-5PM Monday-Friday.  <em>Kids Specials</em>: 3 months, $285.  8 months, $720.</li><br>
    <li>Ulimited Adult Group Classes
      <hr>
      <em>Specials</em>: 3 months, $375.  8 months, $960.  Group Class Schedule:  Monday-Friday from 9-11AM & 4-8PM.</li><br>
    <li>OPEN GYM, $45 / MONTH.
      <hr>
      <em>Special</em>: 3 months, $105 (No Trainer)</ul>
  </div>
  </section>
  
          
      <!--video-->    
          
<section class="section-content" id="learnmore">
	<iframe id="video" src="https://www.youtube.com/embed/ImWeu2GsP4M" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
	
</section>

<!photo montage>
<div id="pictures"></div>
<div class="carousel-container">
  <div class="carousel-imgs">
  <img src="https://assets.codepen.io/t-2181/R0002572+2+Edited.jpg?width=600&format=auto" class="carousel-img visible"/>
  <img src="https://assets.codepen.io/t-2181/R0002558.JPG?width=600&format=auto" class="carousel-img  hidden"/>
  <img src="https://assets.codepen.io/t-2181/boxing_ringside.jpg?width=600&format=auto" class="carousel-img  hidden"/>
  </div>
    <a class="prev arrow">&#10094;</a>
    <a class="next arrow">&#10095;</a>
  <div class="slide-numbers">
      <span class="dot active"></span>
      <span class="dot"></span>
      <span class="dot"></span>
  </div>
  
</div>
<div class="carousel-captions">
  <p class="carousel-caption visible">Everything you need to train.</p>
  <p class="carousel-caption hidden">Full weight room and cardio machines.</p>
  <p class="carousel-caption hidden">Train, Progress, Overcome.</p>
  </div>

<!Photo Montage code ends here>

<section class="contact", id=contact>
  <ul>Contact Information:</ul>
  <li>Phone Number: (562) 754-7921</li>
  <li>Address: 1201 E Hill St., Signal Hill, CA. 90755</li>
  </ul>

          </body>
          
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

html, body {
 height: 100%;
 width: 100%;
 font-size: 100%;
 margin: 0px;
}

body {
	font-family: 'Alegreya Sans', sans-serif;
	--green: #FFFFFF;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  margin: auto;
  width: 100%;
}

.navbar {
	display: flex;
	height: 0.5em;
	align-items: center;
  	padding: 50px 10px;
  	background-color: white; 
  	font-size: 1.5em;
  	list-style: none;
	font-family: 'Black Ops One', cursive;
  
}

@media (max-width: 1000px) {
	.navbar {
		display: row;
		font-size: 1em;
		justify-content: space-around;
	}

	#businessname {
		display: none;
	}

  #form input, button {
  	margin: 0 auto;
  	margin-top: 4%;
  }
}

@media (min-width: 650px) {
	.product {
		width: 26%;
	}
}

#tagline {
  padding: 150px;
 
}
.navbar li {
	padding: 2em;
}

.navbar li a {
	text-decoration: none;
	color: red;
  font-size:15px;
}


#businessname {
	margin: 0 auto;
  font-family: 'Black Ops One', cursive;
  font-size:20px;
  font-weight:100;
}

#header-img {
	width: 4em;
  height: 4em;
}

.section-content {
	display: flex;
	justify-content: center;
 	align-items: center;
 	flex-wrap: wrap;
 	height: 100vh;
  padding: 150px;
  
}

#main {
	background-image: url("https://assets.codepen.io/t-2181/test2.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	text-align: center;
  padding: 150px;
}

h1 {
	color: black;
	font-size: 3.125em;
	width: 60%;
	margin: 0 auto;
	rgba(255,255,255, 0.45);
	padding: 1em 0.8em;
}

.titles3 {
  text-align: center;
  font-family: 'Black Ops One', cursive;
  font-size:3.5em;
  font-weight:150;
  color: red;
  
}
.titles4 {
  text-align: center;
  font-size:1.5em;
  font-weight:200;
}

#history {
	font-size: 1.4em;
}

#history ul li {
	padding: 0.6em;
	list-style: none;
}

.origins {
	margin-right: 1em;
  
}


#learnmore {
	justify-content: space-around;
}

#spacing {
	height: 1em;
}

#video {
	border: 5px solid black;
	border-radius: 10px;
	width: 560px;
	height: 350px;
}

#form {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	flex-direction: column;
	font-size: 1em;
}




#product-range {
	margin: 0 auto;
	width: 80%;
  	justify-content: space-around;
}

.product {
	padding: 1.875em;
	border: 1px solid var(--green);
	text-align: center;
	background-color: white;
}

#product-range button {
	width: 80%;
}

#product-range ul {
	text-align: left;
	margin-left: 30%;
}

.card-image {
	width: 10.2em;
	height: 12em;
	margin: 0 auto;
}

.features1 {
  text-align: center;
}

.contact {
  text-align: center;
  list-style: none;
  font-family: 'Black Ops One', cursive;
  padding: 0px 0px 100px 0px;
  font-size: 2em;
}
/*photo montage css*/

*{
  margin:0;
}

.carousel-container{
  position:relative;
  margin:1em auto .5em auto;
  max-width:600px;
}
.carousel-container, .carousel-caption{
  box-shadow: 0 0 5px rgb(204,204,204);;
}
.carousel-container img{
border-radius:.5em;
}
.hidden{
  display:none;
}
.visible{
  display:block;
}
.arrow{
  display:inline;
}

.prev, .arrow{
 cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin: -1.5em .3em 0 .3em;
  padding: 1em;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  transition: 0.3s ease;
  border-radius: .5em;
  user-select: none;
  background-color:rgba(204,204,204, 0.3);
}
.next {
  right:0 ;
}
.prev:hover, .next:hover{
  box-shadow: 0 0 5px #fff;
  border:1px solid #fff;
}
.slide-numbers{
  text-align: center;
  position:absolute;
  bottom:1em;
  left:45%;

}
.dot{
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: rgba(204,204,204, 0.3);
  border-radius: 50%;
  display: inline-block;
} 

.dot:hover, .active{
  background-color: rgb(204,204,204);
  height: 12px;
  width: 12px;
}
.dot:hover{
   box-shadow: 0 0 5px #fff;
}
.carousel-caption{
  text-align: center;
  color: red;
  font-family:'black ops one', cursive;
  background-color: rgba(204,204,204,.8);
  max-width:600px;
  margin:.5em auto;
  padding:1em 0;
  border-radius:.5em;
}



              
            
!

JS

              
                // Variables
let prev = document.querySelector('.prev');
let next = document.querySelector('.next');
let imgs = document.querySelectorAll('.carousel-img');
let dots = document.querySelectorAll('.dot');
let captions = document.querySelectorAll('.carousel-caption')
let totalImgs = imgs.length;
let imgPosition = 0;

// Event Listeners
next.addEventListener('click', nextImg);
prev.addEventListener('click', prevImg);

// Update Position
function updatePosition (){
//   Images
  for(let img of imgs){
    img.classList.remove('visible');
    img.classList.add('hidden');
  }
  imgs[imgPosition].classList.remove('hidden');
  imgs[imgPosition].classList.add('visible')
//   Dots
  for (let dot of dots) {
     dot.className = dot.className.replace(" active", "");
  }
    dots[imgPosition].classList.add('active');
//   Captions
  for (let caption of captions) {
      caption.classList.remove('visible');
      caption.classList.add('hidden');
  }
    captions[imgPosition].classList.remove('hidden');
    captions[imgPosition].classList.add('visible')
}

// Next Img
function nextImg(){
  if (imgPosition === totalImgs -1){
        imgPosition = 0;
    } else{
        imgPosition++;
    }
    updatePosition();
}
//Previous Image
function prevImg(){
  if (imgPosition === 0){
        imgPosition = totalImgs-1;
    } else{
        imgPosition--;
    }
    updatePosition();
}

// Dot Position
dots.forEach((dot, dotPosition) => {
  dot.addEventListener("click", () => {
    imgPosition = dotPosition
    updatePosition(dotPosition)
  })
})
              
            
!
999px

Console