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 = "container">
  <div class="card">
    <div class="img">
    </div>
    <div class="profilePic"></div>
    <h2>Morgen Sweeney</h2>
    <p class="title">Ant Collector</p>
    <div class="followNum">
      <span>12</span>
      <span>1000<span>
    </div>
    <div class="followTitle">
      <span>Followers</span>
      <span class="following">Following<span>    
    </div>
    <div class="button">Follow</div>
    <p class = "discription">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
  </div>
</div>
              
            
!

CSS

              
                body{
/* font-family: 'Poppins', sans-serif; */
text-align: center;
}
.container{
  background-image: linear-gradient(#ffb3c6, #fb6f92);
  height:700px;
  display:flex;
  align-items: center;
  justify-content: center;
  margin:50px;
}
.card{
  background-color: white;
  margin: 15px;
  height: 470px;
  width: 280px;
  border-radius:25px;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.img{
  background-color: black;
  border-radius:25px 25px 0 0;
  height: 150px;
  background-image: url(https://images.unsplash.com/photo-1545703549-7bdb1d01b734?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1034&q=80);
  background-size: cover;
  background-position: center;
}
.profilePic{
/*   background-color: black; */
  padding:5px;
  height:125px;
  width: 125px;
  border-radius: 75px;
  z-index: 5;
  position:absolute;
  right:77.5px;
  top:77px;
  background-image:url(https://cdn.pixabay.com/photo/2022/04/14/15/20/girl-7132627_960_720.jpg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
h2{
  margin-top: 65px;
  color: #495057;
  font-size: 20px;
  font-family: 'Noto Sans', sans-serif;
}
.title{
  font-size: 12px;
  font-family: 'Dosis', sans-serif;
  color:#adb5bd;
  font-style:bold;
  margin-top: -15px;
  margin-bottom: 5px;
}
.followNum{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 60px;
  align-item: center;
  color:#1e96fc;
  font-size: 24px;
  font-weight:700;
  letter-spacing:-1px;
  font-family: 'Quantico', sans-serif;

}
.followTitle{
  display: flex;
  postion:relative;
  align-items: center;
  justify-content: space-between;
  margin: 20px 50px;
  align-item: center;
  font-size: 12px;
  font-family: 'Dosis', sans-serif;
  color:#adb5bd;
  margin-top: -10px
}
.following{
  position: absolute;
  left:172px;
}
.button{
  padding:12px 20px;
  background-color: #f9c80e;
  border-radius: 20px;
  margin: 0 30px;
  font-size: 14px;
  font-weight:700;
  letter-spacing:.1px;
  font-family: 'Quantico', sans-serif;
  color: #495057;
}
.discription{
  margin: 10px 30px;
  text-align:justify;
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  color: #343a40;
}

              
            
!

JS

              
                
              
            
!
999px

Console