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>
  <main>
    <section class="row-text-wrapper">
        <div class="project-card">
      <img src="https://i.vimeocdn.com/video/525418149_1280x720.jpg"/>
      <div class="project-desc">
        <p>Image Description</p>
        <a href="#"target="_blank"class="view-project-button"> View this Project </a>
      </div>
    </div>
      <div class="image-text">
          <h3>Thy Lorem</h3>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sit amet est ac sem gravida euismod a vestibulum nisi. Maecenas nisi magna, aliquet ac pellentesque vitae, convallis at est. Ut accumsan turpis ac dui lacinia mattis. Vestibulum sollicitudin ac velit at sodales. Maecenas at metus quis neque congue sollicitudin eget vitae lorem. Sed a lacinia ligula. Etiam vel orci quis ante semper hendrerit in rhoncus mi. Sed sagittis tristique arcu. Nam vel neque non magna sodales euismod. Donec vel pellentesque sapien. Integer quis augue accumsan, imperdiet sem ut, tristique eros. Fusce egestas lobortis metus, id posuere erat hendrerit quis. Nulla mattis, velit ac ultricies efficitur, sapien purus tincidunt neque, et ornare lacus nisl vitae mauris.</p>
          </div>
    </section>
        <section class="row-text-wrapper" style="flex-direction: row-reverse;">
        <div class="project-card">
      <img src="https://i.vimeocdn.com/video/525418149_1280x720.jpg"/>
      <div class="project-desc">
        <p>Image Description</p>
        <a href="#"target="_blank"class="view-project-button"> View this Project </a>
      </div>
    </div>
      <div class="image-text">
          <h3>My Lorem</h3>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sit amet est ac sem gravida euismod a vestibulum nisi. Maecenas nisi magna, aliquet ac pellentesque vitae, convallis at est. Ut accumsan turpis ac dui lacinia mattis. Vestibulum sollicitudin ac velit at sodales. Maecenas at metus quis neque congue sollicitudin eget vitae lorem. Sed a lacinia ligula. Etiam vel orci quis ante semper hendrerit in rhoncus mi. Sed sagittis tristique arcu. Nam vel neque non magna sodales euismod. Donec vel pellentesque sapien. Integer quis augue accumsan, imperdiet sem ut, tristique eros. Fusce egestas lobortis metus, id posuere erat hendrerit quis. Nulla mattis, velit ac ultricies efficitur, sapien purus tincidunt neque, et ornare lacus nisl vitae mauris.</p>
          </div>
    </section>
  </main>
</body>
              
            
!

CSS

              
                
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

:root{scroll-behavior: smooth;overflow-y: scroll;ms-overflow-style: none;scrollbar-width: none;}
:root::-webkit-scrollbar{display: none;} /* Thanks Again W3 Schools */

* {
  border: 1px solid red;
}

.project-card {
  border: 1px solid black;
  margin: 2%;
  height: auto;
  box-shadow: 2px 2px 5px black;
  transition: 0.7s ease-in-out;
  width: 700px;
}

body {
  padding: 0;
  font-family: 'Space Mono', monospace;
  margin: -1px;
}

.project-card img {
  width: 100%;
  height: auto;
}

.project-desc {
  position: absolute;
  top: 0;
  left: 0;
  visibility:hidden;
  padding: 5%;
  background-color: black;
  color: white;
  opacity: 0.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: 1s ease-in-out;
}
.project-card:hover .project-desc {
  visibility:visible;
  opacity: 0.8;
  cursor: pointer;
}
.project-card:hover {
  box-shadow: 5px 5px 10px black;
  transform: scale(1.05);
  z-index: 1;
}
.view-project-button {
  border-radius: 5px;
  color: white;
  border: 2px solid white;
  width: relative;
  height: 40px;
  padding: 7px;
  margin: 0 auto;
  transition: 1s ease; 
}
.view-project-button:hover {
  background-color: white;
  color: black !important; 
  text-decoration: none;
}
.row-text-wrapper {
  border: 2px solid green;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: auto;
  margin-top: 1.5%;
}
.image-text {
  width: 700px;
  border: 1px solid black;
  text-align: justify;
  height: 100%;
}

h3 {text-align: center;margin-bottom:2%;}

              
            
!

JS

              
                
              
            
!
999px

Console