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

              
                <body>
  <div class="constrain">
    <div class="header-menu erase-mobile">
      <h3 class="name">Max<span class="header-bold">Strong</span></h3>
    </div>
    <div class="top-bar desk-top">
      <h3 class="name">Max<span class="header-bold">Strong</span></h3>
      <ul class="desk-top">
        <li>Home</li>
        <li>About Us</li>
        <li>Contacts</li>
        <li><img src="https://assets.codepen.io/6060109/icon-search.png" alt="Search Icon"></li>
      </ul>
    </div>
    <div class="erase-mobile">
      <div class="section-content-container text-centered">
        <img src="https://assets.codepen.io/6060109/workout-vector-1.png" alt="Drawing of man on a weightbench doing sit-ups">
        <h1>The time to get <span class="header-bold">strong </span>has come</h1>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
        <a class="btn btn-primary" href="#">Contact Us</a>
      </div>
    </div>
    <div class="two-col-div desk-top">
      <div class="section-content-container">
        <h1>The time to get <span class="header-bold">strong </span>has come</h1>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
        <div class="name">
          <a class="btn btn-primary text-centered" href="#">Contact Us</a>
        </div>
      </div>
      <img src="https://assets.codepen.io/6060109/workout-vector-1.png" alt="Drawing of man on a weightbench doing sit-ups">
    </div>
    <div class="erase-mobile">
      <div class="section-content-container">
        <img class="woman-with-weights" src="https://assets.codepen.io/6060109/workout-vector-2.png" alt="Drawing of woman on one knee with weights in hands">
        <div class="lightblu-bg">
          <h2>Choose loads<br><span class="header-bold">for yourself</span></h2>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim. </p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
        </div>
      </div>
    </div>
    <div class="section-content-container desk-top">
      <div class="two-col-div desk-top">
        <img class="woman-with-weights" src="https://assets.codepen.io/6060109/workout-vector-2.png" alt="Drawing of woman on one knee with weights in hands">
        <div class="desk-lightblu-bg">
          <h2>Choose loads<br><span class="header-bold">for yourself</span></h2>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim. </p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
        </div>
      </div>
    </div>
    <div class="section-content-container header-bold blu-gradient-bg">
      <div class="erase-mobile">
        <div class="alex-box">
          <h2><span class="text-centered header-bold">Alexander Arnold</span></h2>
          <h6 class="text-centered text-firm">35 y.o. // 10 years experience</h6>
          <p class="text-centered">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
          <p class="text-centered">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
          <a class="btn btn-secondary text-centered" href="#">Sign up for training</a>
        </div>
        <div>
          <img class="alex-photo" src="https://assets.codepen.io/6060109/trainer.png" alt="Photo of a fit man with hands on hips">
        </div>
      </div>
      <div class="two-col-div desk-top">
        <div>
          <img class="alex-photo-desk" src="https://assets.codepen.io/6060109/trainer.png" alt="Photo of a fit man with hands on hips">
        </div>
        <div class="alex-desk-box">
          <h2><span class="header-bold">Alexander Arnold</span></h2>
          <h6 class="text-firm">35 y.o. // 10 years experience</h6>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elemetum dignissim.</p>
          <a class="btn btn-secondary" href="#">Sign up for training</a>
        </div>
      </div>
    </div>
    <div class="section-content-container border-bottom">
      <div class="benefits-header desk-top">
        <h2><span class="header-bold">The benefits</span> of exercise</h2>
        <a class="btn-right btn btn-primary text-centered" href="#">Get now</a>
      </div>
      <div class="erase-mobile">
        <img id="womanwalking" src="https://assets.codepen.io/6060109/workout-vector-3.png" alt="Drawing of woman walking for exercise">
        <h2><span class="text-strong">The benefits</span> of exercise</h2>
        <div class="panel panel-blu">
          <h4><span class="text-strong">Increases business flexibility</span></h4>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
        </div>
        <div class="panel panel-purple">
          <h4><span class="text-strong">Improves mental health</span></h4>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
        </div>
        <div class="panel panel-purple">
          <h4><span class="text-strong">Provides more energy
              throughout the day</span></h4>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
        </div>
        <div class="panel panel-blu">
          <h4><span class="text-strong">Helps to find new friends</span></h4>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
        </div>
        <a class="btn btn-primary text-centered erase-mobile" href="#">Get now</a>
      </div>
      <div class="spacer-50"></div>
      <div class="three-col-div desk-top">
        <div class="benefits-box-left">
          <div class="panel panel-blu">
            <h4><span class="header-bold">Increases business flexibility</span></h4>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
          </div>
          <div class="panel panel-purple">
            <h4><span class="header-bold">Provides more energy
                throughout the day</span></h4>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
          </div>
        </div>
        <div class="benefits-box-center">
          <div class="panel panel-purple">
            <h4><span class="header-bold">Improves mental health</span></h4>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
          </div>
          <div class="panel panel-blu">
            <h4><span class="header-bold">Helps to find new friends</span></h4>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra amet placerat mauris elementum dignissim.</p>
          </div>
          <div class="spacer-50"></div>
        </div>
        <div class="benefits-box-right">
          <div class="walkingwoman">
            <img src="https://assets.codepen.io/6060109/workout-vector-3.png" alt="Drawing of woman walking for exercise">
          </div>
        </div>
      </div>
    </div>
    <div class="section-content-container-blu text-centered erase-mobile">
      <div class="menu-container text-centered">
        <h3>Max<span class="header-bold">Strong</span></h3>
      </div>
      <div class="spacer-40">
      </div>
      <div class="menu-container text-centered">
        <ul>
          <li>Home</li>
          <li>About Us</li>
          <li>Contact</li>
          <li>Our trainings</li>
          <li>Price</li>
          <li>FAQ</li>
        </ul>
      </div>
      <div class="email-container">
        <h6>
          <div class="menu text-firm">Stay up to date</div>
        </h6>
        <form><input type="text" placeholder="Your email address">
          <img class="email-send-icon" src="https://assets.codepen.io/6060109/icon-send.png" alt="Small paper plane icon to send email">
        </form>
      </div>
      <div class="spacer-20"></div>
      <div class="social-links erase-mobile">
        <div class="icon-container">
          <img src="https://assets.codepen.io/6060109/icon-instagram.png" alt="Instagram icon">
        </div>
        <div class="icon-container">
          <img src="https://assets.codepen.io/6060109/icon-dribbble.png" alt="Dribble icon">
        </div>
        <div class="icon-container">
          <img src="https://assets.codepen.io/6060109/icon-twitter.png" alt="Twitter icon">
        </div>
        <div class="icon-container">
          <img src="https://assets.codepen.io/6060109/icon-youtube.png" alt="Youtube icon">
        </div>
      </div>
      <div class="copyright">
        © Copyright © 2021 MaxStrong.
      </div>
    </div>
    <div class="footer three-col-div desk-top">
      <div class="col-one">
        <div class="menu-container text-centered">
          <h3>Max<span class="header-bold">Strong</span></h3>
          <div class="spacer-40">
          </div>
          <div class="copyright">
            © Copyright © 2021 MaxStrong.
          </div>
        </div>
      </div>
      <div class="col-two">
        <div class="two-col-div">
          <div class="center-left">
            <ul>
              <li>Home</li>
              <li>About Us</li>
              <li>Contact</li>
            </ul>
          </div>
          <div class="center-right">
            <ul>
              <li>Our trainings</li>
              <li>Price</li>
              <li>FAQ</li>
            </ul>
          </div>
        </div>
      </div>
      <div class="col-three">
        <div class="email-container">
          <h6>
            <div class="menu text-firm">Stay up to date</div>
          </h6>
          <form><input type="text" placeholder="Your email address">
            <img class="email-send-icon" src="https://assets.codepen.io/6060109/icon-send.png" alt="Small paper plane icon to send email">
          </form>
        </div>
      </div>
    </div>
  </div>
</body>
              
            
!

CSS

              
                *,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Hellix;
  min-width: 100%;
  min-height: 100vh;
  display: auto;
  background: linear-gradient(7.28deg, #eef5ff 0%, #ffffff 99.69%);
}
.constrain {
  min-width: 350px;
  max-width: 450px;
  margin: auto;
}
.header-menu {
  height: 75px;
  padding: 0px 0px;
  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);
  display: flex;
  justify-content: center;
  align-items: center;
}
.top-bar {
  margin: 0 20px;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar > h3 {
  display: block;
  float: left;
}
.top-bar > ul {
  display: flex;
  align-items: center;
}
.top-bar > ul > li {
  list-style-type: none;
  margin-left: 10px;
}
h1,
h2,
h3,
h6 {
  font-weight: 500;
  color: #111235;
}
h1 {
  font-size: 64px;
  line-height: 75px;
  margin: 20px 0;
}
h2 {
  font-size: 48px;
}
h3 {
  font-size: 36px;
}
h4 {
  font-size: 24px;
}
h5 {
  color: #111235;
  font-weight: 600;
  font-size: 18px;
  line-height: 28.8px;
}
h6 {
  font-size: 18px;
  line-height: 24px;
}
p {
  line-height: 24px;
  font-size: 16px;
  font-weight: 400;
}
.menu-container > ul {
  padding: 0;
  margin: 0;
}
li {
  list-style-type: none;
  padding: 20px;
  margin: 0;
}
.text-centered {
  text-align: center;
}
.header-bold {
  font-weight: 700;
}
.text-firm {
  font-weight: 600;
}
.section-content-container img {
  width: 100%;
}
.section-content-container {
  margin: 40px 15px 100px;
}
.lightblu-bg {
  margin: 20px 0px 0px 0px;
  padding: 50px 0px 50px 0px;
  background-color: #f2f8ff;
  width: 100%;
}
.lightblu-bg > h2 {
  margin: 0px 10px 20px 20px;
}
.lightblu-bg > p {
  margin: 0px 20px 10px;
}
.desk-lightblu-bg {
  margin: 20px 0px 0px 0px;
  padding: 50px 0px 50px 0px;
  border-radius: 55px;
  background-color: #f2f8ff;
  width: 100%;
}
.desk-lightblu-bg > h2 {
  margin: 0px 10px 20px 20px;
}
.desk-lightblu-bg > p {
  margin: 0px 20px 10px;
}
.panel {
  width: 91%;
  height: 275px;
  margin: 20px 20px 20px 20px;
  padding: 50px 50px 50px 20px;
  border-radius: 25px;
}
.panel > h4 {
  margin: 0px 30px 20px 15px;
}
.panel > p {
  margin: 0px 0px 0px 20px;
}
.panel-blu {
  background-color: #e4f0ff;
}
.panel-purple {
  background-color: #727aef1a;
}
.btn {
  font-weight: 600;
  text-decoration: none;
  display: block;
  width: 230px;
  padding: 20px 0;
  border-radius: 50px;
  margin: 30px auto;
}
.btn-primary {
  background-color: #485092;
  color: white;
}
.btn-secondary {
  background-color: white;
  color: #436baa;
  text-align: center;
}
.btn-right {
  transform: translateX(75%);
}
.blu-gradient-bg {
  background: linear-gradient(0.25turn, #bad5ff 0%, #6487bf 100%);
}
.alex-box {
  padding: 50px 0px 30px 0px;
}
.alex-box > h2 {
  margin: 30px 0px 15px 0px;
  text-align: center;
}
.alex-box > h6 {
  margin: 10px 0px 25px 0px;
}
.alex-box > p {
  padding: 0px 30px;
}
.alex-desk-box {
  padding: 50px 0px 30px 0px;
}
.alex-desk-box > h2 {
  margin: 0px 0px 15px 50px;
}
.alex-desk-box > h6 {
  margin: 10px 0px 25px 50px;
}
.alex-desk-box > p {
  padding: 0px 30px 25px 50px;
}
.alex-photo {
  margin: 0px 0px -4px 0px;
}
.alex-photo-desk {
  margin: 0px 0px -4px 0px;
}
.woman-with-weights {
  margin: 45px 0px 0px 0px;
}
#womanwalking {
  margin: 10px 0px 60px 0px;
}
.benefits-header {
  height: 75px;
  padding: 20px 0px;
  margin: 0px 0px 0px 15px;
  display: flex;
  align-items: center;
}
.border-bottom {
  border-bottom: 1px solid black;
  margin: 20px 0 50px;
}
.benefits-left {
  width: 30%;
}
.benefits-right {
  width: 30%;
}
.benefits-box-left {
  width: 33%;
}
.benefits-box-center {
  width: 33%;
}
.benefits-box-right {
  width: 33%;
}
.benefits {
  display: flex;
}
.menu-container {
  width: 100%;
}
form {
  display: flex;
}
.email-container {
  width: 280px;
  margin: auto;
  padding: 20px 0px 5px;
}
input[type="text"] {
  width: 255px;
  border: none;
  border-radius: 5px;
  padding: 10px;
  margin: 20px;
  font-weight: 400;
  font-family: Hellix;
}
input::placeholder {
  color: #111235;
}
.placeholder-box {
  margin: 0px -250px 0px 0px;
}
.email-send-icon {
  height: 20px;
  transform: translateX(-220%) translateY(140%);
}
.social-links {
  width: 220px;
  height: 35px;
  margin: auto;
  padding: 0px 0px;
  display: flex;
  justify-content: space-around;
}
.icon-container {
  padding: 10px 10px;
  background-color: #80adf51a;
  border-radius: 80px;
}
.name {
  float: left;
}
.desk-top {
  display: none;
}
.two-col-div {
  column-count: 2;
  column-width: 10px;
}
.three-col-div {
  column-count: 3;
  column-width: 10px;
}
.col-one {
  width: 33.3%;
}
.col-two {
  width: 33.3%;
}
.col-three {
  width: 33.3%;
}
.center-left {
  width: 100%;
}
.center-right {
  width: 100%;
}
.footer {
  height: 200px;
}
.copyright {
  font-size: 14px;
  padding: 60px 0px 100px 0px;
}
.spacer-20 {
  width: 100%;
  height: 20px;
}
.spacer-40 {
  width: 100%;
  height: 40px;
}
.spacer-50 {
  width: 100%;
  height: 50px;
}
.spacer-100 {
  width: 100%;
  height: 50px;
}
@media only screen and (min-width: 992px) {
  .desk-top {
    display: flex;
  }
  .erase-mobile {
    display: none;
  }
  .constrain {
    min-width: 800px;
    max-width: 1200px;
    margin: auto;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console