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

              
                <!DOCtype html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<header id="header">
    <div class="logo">
      <img id="header-img"class=“responsive” src="https://scontent-lcy1-1.xx.fbcdn.net/v/t39.30808-6/274954783_10228039362840151_5914327305874480195_n.jpg?_nc_cat=102&ccb=1-5&_nc_sid=730e14&_nc_ohc=HWDD4DkJlq8AX94AIEz&tn=sFvP31kzriU0O9ZC&_nc_ht=scontent-lcy1-1.xx&oh=00_AT_tTzlMWMihuJdFdHK9qeDSCZoCaxZldI2pzfJWvVI7lQ&oe=621F8CF3" alt=" Stabby Places Tattoo Logo"/>
  </div>
   
 <nav id="nav-bar">
      <ul 
    <li><a class="nav-link" href="#Gallery">Gallery</a>
   </li>
        <li><a class="nav-link" href="#how-it-works">How It Works</a></li>
        <li><a class="nav-link" href="#contacts">Contacts</a></li>
      </ul>
    </nav>
  </header>
  
<body>
  <section id="Design">
    <h2>Original Design Created from the Artists of our Studio</h2>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input
        name="email"
        id="email"
        type="email"
        placeholder="Enter your email address"
        required
      />
      <input id="submit" type="submit" value="Get Started" class="btn" />
    </form>
  </section>
  <div class="container">
    <section id="how-to-book">
      <div class="grid">
        <div class="icon"><i class="fa fa-3x fa-fire"></i></div>
        <div class="desc">
          <h3>Unique Design</h3>
          <p>We offer a choice of unique design that can be customize. Pls check our Gallery to see all the available design
            
          </p>
        </div>
      </div>
      <div class="grid">
        <div class="icon"><i class="fa fa-3x fa-truck"></i></div>
        <div class="desc">
          <h3>Tattoo that find a forever home</h3>
          <p class="p2">
            We required a deposit equal to the 30% of the agreed price in order to be able to confirm your booking   
          </p>
        </div>
      </div>
      </section>
    <section id="gallery">
      <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/kxLoycj4pJY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </section></div>
      
      </body>
</html>
              
            
!

CSS

              
                
body {
  background-color:#02aeb1 ;
  font-family: Arial black;
  display:block;
}


li {
  list-style: none;
}

a{
  color: black;
  text-decoration: none;
  background-color:#02aeb1 ;
  min-width: 150px;
  position: relative;
  left: 1450px;
  display:block;
}
.responsive {
  width: 100%;
  height: auto;
}
.logo {
  width: 60vw;
}

@media (max-width: 650px) {
  .logo {
    margin-top: 15px;
    width: 100%;
    position: relative;
  }
}

.logo > img {
  width: 100%;
  height: 100%;
  max-width: 200px;
  display: flex;
}

@media (max-width: 650px) {
  .logo {
    margin: 0 auto;
  max-width: 80%;
  width: auto;
  height: auto;
  display: flex;
  position:relative;
  transparency: 75%;
  }
}
.container{
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  
}

.btn {
  padding: 0 20px;
  height: 40px;
  font-size: 1em;
  font-weight: 900;
  text-transform: uppercase;
  border: 3px black solid;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

header {
  position: fixed;
  top: 20px;
  min-height: 75px;
  padding: 0px 20px;
  display: block;
  justify-content: space-around;
  text-align:right;
  
}
nav {
  font-weight: 400;
}

@media (max-width: 650px) {
  nav {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    text-align: center;
    padding: 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
}

nav > ul {
  width: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: -140px;
  margin-left:80px;
}

@media (max-width: 650px) {
  nav > ul {
    flex-direction:column;
  }
}

h2 {
text-align:center;
  margin-left:auto;
  margin-right:auto;
  display:block;
  position: relative;
}

 input[type='email'] {
  max-width: 350px;
  width: 100%;
  padding: 15px;
  margin-left: auto;
   margin-right: auto;
   margin-top: auto;
   margin-bottom: 25px; 
   display:block;
   position: relative;
}

#Design input[type='submit'] {
  max-width: 150px;
  width: 100%;
  height: 30px;
  margin-left: auto;
   margin-right: auto;
   margin-top: auto;
  border: 0;
  background-color:#02aeb1;
  display:block;
  position: relative;
}

#Design input[type='submit']:hover {
  background-color: orange;
  transition: background-color 1s;
}

@media (min-width: 450px) {
  #Design {
    margin-top: 120px;
  }
}

h3 {
  margin-left: auto;
  margin-right:auto;
  font-size: 22px;
  display:block;
  position: relative;
}


p {
  margin-left: auto;
  margin-right:auto;
  font-size: 15px;
  display:block;
  position: relative;
  padding-bottom: 25px;

}
iframe{
    position: relative;
    width: 80%;
    margin: 0 auto;
  
}




              
            
!

JS

              
                
              
            
!
999px

Console