Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ 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

Auto Save

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

              
                <div class="constraint">
  <div class="outer-container">
    <div class="header-section">
      <p id="title">Max<span class="bold-text">Strong</span></p>
      <ul class="mobile-menu">
        <li>Home</li>
        <li>About Us</li>
        <li>Contact</li>
        <li><img src="https://assets.codepen.io/6060109/icon-search.png"></li>
      </ul>
    </div>
    <div class="title-section"></div>
  </div>
  
  <div class="outer-container">
    <div class="content-container flex-reverse">
      <div class="mobile-cover-pg1"></div>
      <div>
        <p class="title-cover">The time to get <span class="bold-text">strong</span> has come</p>
        <p class="text-description">Whether you’re just starting out or an old hand, you’ll find what you need for your fitness journey.</p>
        <a href="#" class="btn btn-purple">Contact us</a>
      </div>
    </div>
  </div>
  
  <div class="outer-container">
    <div class="content-container mod-margin flex-normal">
      <div class="mobile-cover-pg2"></div>
      <div class="bg-blue">
        <p class="title-content align-left">Choose loads <span class= "bold-text">for yourself</span></p>
        <p class="text-description align-left no-space"> With the best trainers, equipments, and fitness programs on this planet, Gold’s Gym guarantees results.</p>
<!--         <p class="text-description align-left">  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p> -->
      </div>
    </div>
  </div>

  <div class="content-container bg-gradient mod-margin flex-reverse pd-l-10 pd-top-35px" >
    <div class="summary-trainer">
      <p class="bold-text title-content">Alexander Arnold</p>
      <p class="text-description-middle">35 y.o. // 10 years experiense</p>
      <br/>
      <p class="text-description no-space">Meet Alex, one of our best personal trainer in Max Strong. His experience will help you to shape your body</p>
      <p class="text-description">Beside a personal trainer, he is also a solo traveler, he has travel to more than 10 countries and still counting.</p>
      <a href="#" class="btn btn-white">Sign up for training</a>
     </div>
     <img id="trainer-img" src="https://assets.codepen.io/6060109/trainer.png"/>
    
  </div>
  
  <div class="benefit-mobile-view">
    <div class="content-container flex-reverse">
      <div class="mobile-cover-pg3"></div>
      <p class="title-content align-left"><span class="bold-text">The benefits</span> of exercise</p>
      <div class="bg-darker-blue ptb-15 plr-15">
        <p class="bold-text title-benefit align-left">Increases business</p>
        <p class="bold-text title-benefit align-left">flexibility</p>
        <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
      </div>

      <div class="bg-lighter-blue ptb-15 plr-15">
        <p class="bold-text title-benefit align-left">Improves mental</p>
        <p class="bold-text title-benefit align-left">health</p>
        <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
      </div>

      <div class="bg-lighter-blue ptb-15 plr-15">
        <p class="bold-text title-benefit align-left">Provides more energy</p>
        <p class="bold-text title-benefit align-left">throughout the day</p>
        <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
      </div>

      <div class="bg-darker-blue ptb-15 plr-15">
        <p class="bold-text title-benefit align-left">Helps to find</p>
        <p class="bold-text title-benefit align-left">new friends</p>
        <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
      </div>
      <br/>
      <a href="#" class="btn btn-purple">Get now</a>
      <br/><br/><br/><br/><br/>
      <hr>
    </div>
  </div>
  
  <div class="outer-container">
    <div class="benefit-desktop-view">
      <div class="flex-normal">
        <p class="title-content align-left"><span class="bold-text">The benefits</span> of exercise
        </p>
        <a href="#" class="btn btn-purple height-10px">Get now</a>
      </div>
      <div class="flex-normal gap-10px">
        <div class="benefit-list">
          <div class="flex-normal gap-10px">
            <div class="bg-darker-blue ptb-15 plr-15">
              <p class="bold-text title-benefit align-left">Increases business</p>
              <p class="bold-text title-benefit align-left">flexibility</p>
              <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
            </div>

            <div class="bg-lighter-blue ptb-15 plr-15">
              <p class="bold-text title-benefit align-left">Improves mental</p>
              <p class="bold-text title-benefit align-left">health</p>
              <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
            </div>
          </div>
          
          <div class="flex-normal gap-10px">
            <div class="bg-lighter-blue ptb-15 plr-15">
              <p class="bold-text title-benefit align-left">Provides more energy</p>
              <p class="bold-text title-benefit align-left">throughout the day</p>
              <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
            </div>

            <div class="bg-darker-blue ptb-15 plr-15">
              <p class="bold-text title-benefit align-left">Helps to find</p>
              <p class="bold-text title-benefit align-left">new friends</p>
              <p class="text-description-benefit align-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
            </div>
          </div>
        </div>
        <div class="mobile-cover-pg3"></div>
      </div>
      <hr>
    </div>
    
  </div>
  
  <div class="outer-container">
    <div class="content-container flex-2">
      <div class="">
        <p id="title">Max<span class="bold-text">Strong</span></p>
        <p class="copyright-desc">© Copyright © 2021 MaxStrong.</p>
      </div>
      <div id="footer-menu" class="flex-2 row-gap-15">
        <div>
          <p class="text-description-footer">Home</p>
          <p class="text-description-footer mg-top-35">About Us</p> 
          <p class="text-description-footer mg-top-35">Contact</p>
        </div>
        <div>
          <p class="text-description-footer mg-top-35-train">Our trainings</p>
          <p class="text-description-footer mg-top-35">Price</p>
          <p class="text-description-footer mg-top-35">FAQ</p>
        </div>
      </div>
      
      <div>
        <p class="text-description-middle">Stay up to date</p>
        <div id="footer-email">
          <input type="text" placeholder="Your email address" id="input-email" />
        </div>
        <div id="social-button" class="top-m15">
          <div class="icon-circle">
            <img src="https://assets.codepen.io/6060109/icon-instagram.png"/>
          </div>
          <div class="icon-circle">
            <img src="https://assets.codepen.io/6060109/icon-dribbble.png"/>
          </div>
          <div class="icon-circle">
            <img src="https://assets.codepen.io/6060109/icon-twitter.png"/>
          </div>
          <div class="icon-circle">
            <img src="https://assets.codepen.io/6060109/icon-youtube.png"/>
          </div>
        </div>
        <br/>
        <p class="copyright-desc-mobile">© Copyright © 2021 MaxStrong.</p>
      </div>
      
    </div>
  </div>

</div>
              
            
!

CSS

              
                * {
  margin: 0;  
}

html, body {
  min-width: 100%;
  min-height: 100vh;
  font-family: Hellix;
  color: #111235;
  background: linear-gradient(7.28deg, #EEF5FF 0%, #FFFFFF 99.69%);
}

.constraint {
  max-width: 500px;
  margin: auto;
}

#title {
  font-size:36px;
  font-weight: 500;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0px;
}

.content-container {
  margin: 90px 16px;  
  text-align: center;
}

.mod-margin {
  margin: 100px 0px; 
}

.bg-gradient img {
  margin-bottom: -2px;
}

.title-section {
  width: 100%;
  height: 8px;
  background: #FFFFFF;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
}

.mobile-cover-pg1 {
  background: #ffffff url("https://assets.codepen.io/6060109/workout-vector-1.png") no-repeat center center;
  width: 100%;
  height: 414px;
  margin-top: 0px;
  background-size: cover;
}


.mobile-cover-pg2 {
  background: #ffffff url("https://assets.codepen.io/6060109/workout-vector-2.png") no-repeat center center;
  width: 100%;
  height: 276px;
  background-size: cover;
}

.mobile-cover-pg3 {
  background: #ffffff url("https://assets.codepen.io/6060109/workout-vector-3.png") no-repeat center center;
  width: 100%;
  height: 414px;
  background-size: cover;
}

.title-cover {
  font-weight: 500;
  font-size: 64px;
  text-align: center;
  margin: 30px 0;
  line-height: 75px;
}

.title-content {
  font-weight: 500;
  font-size: 48px;
  text-align: center;
  margin: 35px 0;
  line-height: 57.61px;
}

.text-description {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 24px;
}

.text-description-benefit {
  font-size: 16px;
  margin-top: 15px;
  line-height: 24px;
}

#footer-menu {
  margin: 55px 0;
}

.text-description-footer {
  font-size: 16px;
  margin-top: 35
}

.text-description-middle {
  font-size: 18px;
  font-weight: 550;
  margin-bottom: 20px;
}

.title-benefit {
  font-size: 24px;
  line-height: 28.8px;
}

.no-space {
  margin-bottom: 0;
}

.align-left {
  text-align: left;
}

.btn {
  text-decoration: none;
  width: 252px;
  display: block;
  padding: 10px 0;
  font-size: 18px;
  border-radius: 35px;
  border: none;
  margin: auto;
}

.btn-purple {
  background: #4B5092;
  color: white;
}

.btn-white {
  background: white;
  color: #436BAA;
  font-weight: 600;
  size: 18px;
}

.bg-blue {
  background: #F2F8FF;
  padding: 15px 16px;
}

.bg-darker-blue {
  background: #E4F0FF;
  padding: 45px 42px;
  border-radius: 30px;
  margin: 25px 0;
}

.bg-lighter-blue {
  background: rgba(114, 122, 239, 0.1);
  padding: 45px 34px;
  border-radius: 30px;
  margin: 25px 0;
}

.bg-gradient {
  background: linear-gradient(99.85deg, #BAD5FF 0%, #6487BF 100%);
  padding: 70px 16px 0;
}

.bold-text {
  font-weight: 700;
}

hr {
  color: red;
}

#input-email {
  width: 85%;
  border: none;
  padding: 10px;
  border-radius: 5px;
  color: #111235;
  font-weight: 400px;
  background: url("https://assets.codepen.io/6060109/icon-send.png") white 95% 50% no-repeat;
  padding-left:25px; 
}

div.footer-email > buttton {
  height: 450px;
}

.icon-circle {
  background-color: rgba(128,173,245,.2);
  height: 32px;
  width: 32px;
  border-radius: 100%;
}

div.icon-circle > img {
  display: block;
  margin: auto;
  margin-top: 7px;
/*   width: 20%; */
}

#social-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0px;
  gap: 12px;
  margin-bottom: 50px;
}

.top-m15 {
  margin-top: 15px;
}

.copyright-desc-mobile {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  font-feature-settings: 'liga' off;
  color: #111235;
}

#trainer-img {
  max-width: 100%;
  height: auto;
}

.mobile-menu {
  display: none;
}

.benefit-desktop-view {
  display:none;
}

.mg-top-35 {
  margin-top: 35px;
}

.mg-top-35-train {
  margin-top: 35px;
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .outer-container {
    margin: 35px 10%;
  }
  
  .content-container {
    margin: 0;  
    text-align: left;
  }
  
  .constraint {
    max-width: 1500px;
  }
  
  #title {
    text-align: left;
    margin-top:0;
  }
  
  .title-section {
    box-shadow: none;
   
  }
  
  .header-section {
    display: flex;
    justify-content: space-between;
  }
  
  .mobile-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style-type:none;
    width: 40%;
  }
  
  .flex-reverse {
    text-align: left;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
  }
  
  .flex-normal {
    display: flex;
    justify-content: space-between;
    text-align:left;
    align-items: center;
  }
  
  .title-cover {
    text-align: left;
  }

  .btn {
    margin: 0;
    text-align: center;
    width: 200px;
/*     height: 10px; */
  } 
  
  .pd-l-10 {
      padding-left:10%;
  }
  
  .pd-top-35px {
    padding-top: 35px;
  }
  
  .summary-trainer {
    padding: 70px 166px;
  }
  
  .title-content {
    text-align: left;
  }
  
  .benefit-mobile-view {
    display: none;
  }
  
  .benefit-desktop-view {
    display: block;
  }
  
  .height-10px {
    height: 25px;    
  }
  
  .gap-10px {
    gap: 10px;
  }
  
  
  .flex-2 {
    display: flex;
    justify-content: space-between;
    text-align:left;
  }
  
  #footer-menu {
    margin: 0;
  }
  
  .copyright-desc-mobile {
    display: none;  
  }
  
  .copyright-desc {
    text-align: left;
    margin-top: 100px;
  }
  
  .row-gap-15 {
    gap: 135px;    
  }
  
  #social-button {
    display: none;
  }
  
  .mg-top-35-train {
    margin-top:0;
  }
}




              
            
!

JS

              
                
              
            
!
999px

Console