Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <html>
  <head>
    <meta charset="utf-8">
    <title>User Account Dashboard Design</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600" rel="stylesheet">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="container">
      <div class="header">
        <nav class="main-menu">
          <ul>
            <li class="main-nav-list">Settings</li>
            <li class="main-nav-list">Account</li>
            <li class="main-nav-list">Messages <button class="rounded-button">123</button></li>
            <li class="main-nav-list">Favorites</li>
            <li class="main-nav-list me">Me</li>

          </ul>
          <div class="thumbnail-container">
            <img src="https://pbs.twimg.com/media/B0Z5eQGIEAAoKuY.jpg" alt="Anthony Hopkins Avatar" class="thumbnail-avatar" />
          </div>
        </nav>
      </div>
      <div class="float-container">
        <div class="secondary-menu">
          <div class="menu-box">
            Menu Box
          </div>
          <ul>
            <li class="secondaty-menu-list">
              Messages
              <button class="button-square">123</button>
            </li>
            <li class="secondaty-menu-list">
              Invites
              <button class="button-square">10</button>
            </li>
            <li class="secondaty-menu-list">
              Events
              <button class="button-square">5</button>
            </li>
            <li class="secondaty-menu-list">Account Settings</li>
            <li class="secondaty-menu-list">Statistics</li>
          </ul>
        </div>
        <div class="overview">
          <div class="avatar-container">
            <img src="https://pbs.twimg.com/media/B0Z5eQGIEAAoKuY.jpg" alt="Anthony Hopkins Avatar" class="avatar" />
          </div>
          <div class="name">
            <h1>Anthony Hopkins</h1>
            <p class="name-description">Lorem ipsum dolor sit amet, consectetur adipisicing elit</h2>
          </div>
          <div class="statistics">
            <ul>
              <li class="statistics-list green">122</li>
              <li class="statistics-list light-green">562</li>
              <li class="statistics-list blue">684</li>
            </ul>
          </div>

        </div>
        <div class="newsletter">
          <h1 class="newsletter-header">Join Newsletter!</h1>
          <form>
            <input type="email" class="input-email" placeholder="email@example.com" />
            <button class="submit">Subscribe</button>
          </form>
        </div>
      </div>

    </div>
  </body>
</html>

            
          
!
            
              * {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  background-color: #f2f2f2;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
}
.container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 20px;
}
.header {
  height: 150px;
  border-radius: 10px;
  background-color: #0f623e;
  color: #fff;
  border: solid 2px #0f623e;
}
.main-menu {
  width: 100%;
  height: 150px;
}
.main-nav-list {
  list-style-type: none;
  display: block;
  padding: 13px 40px 0px 25px;
  text-transform: uppercase;
}
.main-nav-list:hover {
  cursor: pointer;
  font-weight: bold;
  background-color: #447f13;
  margin-top: -2px;
  border-radius: 10px;
}
.rounded-button {
  width: 30px;
  height: 30px;
  background-color: #447f13;
  color: #fff;
  border-radius: 50%;
  border: none;
  position: absolute;
  margin-top: -20px;
}
.me {
  margin-top: -74px;
  margin-left: 198px;
}
.thumbnail-container {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 50%;
  margin: -85px 0 0 210px;
  border: solid 2px #447f13;
}
.thumbnail-avatar {
  width: auto;
  height: 100%;
}
.float-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}
.secondary-menu {
  width: 280px;
  border: solid 2px #0f623e;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 10px 10px 20px #c2c2c2;
}
.secondary-menu:hover {
  box-shadow: 10px 10px 5px #c2c2c2;
}
.secondaty-menu-list {
  height: 82px;
  list-style-type: none;
  padding: 30px 30px 30px 60px;
  border-bottom: solid 1px #0f623e;
  color: #0f623e;
}
.secondaty-menu-list:hover {
  background-color: #447f13;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}
.menu-box {
  padding: 30px;
  text-align: center;
  background-color: #0f623e;
  color: #fff;
  font-size: 1.5em;
  font-weight: 500;
}
.statistics-value {
  margin-top: -5px;
}
.button-square {
  position: absolute;
  color: #fff;
  border: none;
  border-radius: 10px;
  background-color: #447f13;
  width: 40px;
  height: 20px;
  margin-top: -32px;
  display: block;
  margin-left: 100px;
}
.overview {
  width: 280px;
  border: solid 2px #0f623e;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 10px 10px 20px #c2c2c2;
}
.overview:hover {
  box-shadow: 10px 10px 5px #c2c2c2;
}
.avatar-container {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: solid 5px #447f13;
  margin-top: 40px;
  margin-left: 45px;
}
.avatar {
  width: auto;
  height: 100%;
}
.name {
  text-align: center;
  margin: 30px;
  color: #0f623e;
}
.name-description {
  margin-top: 30px;
}
.statistics-list {
  display: inline-block;
  list-style-type: none;
  text-align: center;
  width: 33.33%;
  height: 82px;
  margin-top: 15px;
  padding-top: 30px;
  color: #0f623e;
}
.green {
  border-top: solid 5px #0f623e;
}
.light-green {
  border-top: solid 5px #447f13;
  border-left: solid 1px #0f623e;
  border-right: solid 1px #0f623e;
  margin-left: -5px;
}
.blue {
  border-top: solid 5px #133c5c;
  margin-left: -4px;
}
.newsletter {
  width: 280px;
  height: 380px;
  border: solid 2px #0f623e;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 10px 10px 20px #c2c2c2;
}
.newsletter:hover {
  box-shadow: 10px 10px 5px #c2c2c2;
}
.newsletter-header {
  color: #0f623e;
  margin: 40px 50px;
}
.input-email {
  width: 90%;
  padding: 18px;
  border: solid 2px #0f623e;
  border-radius: 10px;
}
.submit {
  margin: 50px;
  padding: 20px 40px 20px 40px;
  font-size: 1.2em;
  color: #fff;
  background-color: #447f13;
  border-radius: 10px;
  box-shadow: 10px 10px 5px #d2d2d2;

}
button:hover {
  box-shadow: 5px 5px 5px #d2d2d2;
  background-color: #0f623e;
}
::placeholder {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  font-style: italic;
}
:focus {
  outline-color: #447f13;
}
@media (min-width: 360px) {
  .thumbnail-container {
    margin: -85px 0 0 247px;
  }
  .me {
    margin-left: 232px;
  }
  .secondary-menu, .overview, .newsletter {
    width: 320px;
  }
  .avatar-container {
    margin-left: 65px;
  }
}
@media (min-width: 576px) {
  .header {
    width: 100%;
    height: 125px;
  }
  .secondary-menu, .overview {
    width: 265px;
    float: left;
  }
  .me {
    margin: 0;
  }
  .main-nav-list {
    display: inline-block;
    padding: 20px 14px 20px 14px;
  }
  .thumbnail-container {
    margin: -4px 0 0 466px;
  }
  .secondaty-menu-list {
    height: 94px;
  }
  .avatar-container {
    margin-left: 37px;
  }
  .newsletter {
    width: 100%;
    height: 290px;
  }
  .newsletter-header {
    margin: 25px 50px;
  }
  .submit {
    margin: 30px;
  }
}
@media (min-width: 768px) {
  .header {
    width: 100%;
    height: 65px;
  }
  .main-menu {
    height: 65px;
  }
  .me {
    float: right;
    margin-right: 47px;
  }
  .thumbnail-container {
    float: right;
    margin: -55px 5px 0 0;
  }
  .secondary-menu, .overview {
    width: 360px;
  }
  .secondaty-menu-list {
    height: 82px;
  }
  .avatar-container {
    margin-left: 85px;
  }
}
@media (min-width: 980px) {
  .secondary-menu, .overview, .newsletter {
    width: 310px;
    float: left;
  }
  .secondary-menu {
    height: 504px;
  }
  .newsletter {
    height: 320px;
  }
  .avatar-container {
    margin-left: 60px;
  }
}
@media (min-width: 1280px) {
  .header {
    height: 82px;
    margin: 20px auto;
    border-radius: 10px;
    background-color: #0f623e;
    color: #fff;
    border: solid 2px #0f623e;
  }
  .main-menu {
    width: 98%;
  }
  .main-nav-list {
    height: 82px;
    list-style-type: none;
    display: inline;
    float: left;
    vertical-align: middle;
    padding: 30px 40px 30px 40px;
    text-transform: uppercase;
    font-weight: 500;
  }
  .main-nav-list:hover {
    cursor: pointer;
    font-weight: bold;
    background-color: #447f13;
    margin-top: -2px;
    border-radius: 10px;
  }
  .me {
    float: right;
  }
  .me:hover {
    background-color: #0f623e;
  }
  .thumbnail-container {
    margin: 14px -150px 0 0;
  }
  .float-container {
    width: 1240px;
    margin: 0 auto;
  }
  .secondary-menu, .overview, .newsletter {
    width: 400px;
  }

  .avatar-container {
    margin-left: 105px;
  }
  .newsletter {
    width: 400px;
    height: 380px;
    border: solid 2px #0f623e;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 10px 10px 20px #c2c2c2;
  }
  .newsletter-header {
    color: #0f623e;
    margin: 55px 50px;
  }
  .submit {
    margin: 50px;
    padding: 20px 40px 20px 40px;
    font-size: 1.2em;
    color: #fff;
    background-color: #447f13;
    border-radius: 10px;
    box-shadow: 10px 10px 5px #d2d2d2;
  }
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console