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="wrapper">
<div class="home-hero">
  <div class="feature">
    <h3>International Surveyors Week 2019</h3>
    <p>A week long celebration of Land Surveyors, Worldwide. Join your location based hub and introduce yourself in forum-share photos and videos</p>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/internationalsurveyorsweek2019">ISW2019 Hub</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/Africa">Africa Surveyors</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/Asia">Asia Surveyors</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/N+America">North America</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/Caribbean">Caribbean Surveyors</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/Europe">Europe Surveyors</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/S+America">South America</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/Middle+East">Middle East</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/Oceania">Oceania Surveyors</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/profiles/blog/list/blogpost/new">+Add a Story</a>
  </div>
  <div class="special">
    <h3>Survey Earth in a Day 8</h3>
    <p>Remeasuring the entire planet in a single day as a community of Land Surveyors</p>
    <a class="isw-button" href="https://landsurveyorsunited.com/hubs/SEIAD">Visit SEIAD Hub</a>
    <a class="isw-button" href="https://landsurveyorsunited.com/events/survey-earth-in-a-day-8">RSVP SEIAD8</a>

  </div>
  <div class="amazing">
    <h3>How to use the new Surveying Jobs Board</h3>
    <p>Find and Post Available Surveying Jobs</p>
    <a class="isw-button" href="https://landsurveyorsunited.com/jobs">Learn about Jobs Board</a>
    <a class="isw-button" href="https://hiresurveyors.glideapp.io">Add your Resume</a>
  </div>
  <div class="newsy">
    <h3>Land Surveyor Submitted Photos</h3>
    <p>See through the eyes of other surveyors, worldwide. </p>
    <a class="isw-button" href="https://landsurveyorsunited.com/photo/list/featured">Featured Photos</a>
     <a class="isw-button" href="https://landsurveyorsunited.com/photo">Add Surveying Photos</a>
    <a class="isw-button" href="https://globalsurveyors.glideapp.io">Add Photos using App</a>
   
  </div>
  <div class="photos"><h3>Surveying Videos</h3>
    <p>Learn Something New Everyday</p>
  <a class="isw-button" href="https://landsurveyorsunited.com/video/list/tag/tutorial">Surveying Video Tutorials</a> <a class="isw-button" href="https://landsurveyorsunited.com/video/video/new">Add A Surveying Video</a></div>
  <div class="cta"><p> <a class="isw-button" href="https://landsurveyorsunited.com/apps">Surveyor Community Apps</a>If you are a land surveyor who would like to contribute to the community's collective knowledge, here is where you get started. </p>
    <a class="isw-button" href="https://landsurveyorsunited.com/main/authorization/signUp?">Create Your Community Profile</a></div>
  
 

</div>
</div>
              
            
!

CSS

              
                body {
  background-color: #efefef;  
}

h3 {
  margin: 0;
}

h3+p {
  margin-top: 0;
}



.wrapper {
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  background-color: #fff;
}

.home-hero {
  display: grid;
  grid-gap: 1px;
  grid-auto-rows: minmax(150px, auto);
}

.home-hero > * {
  padding: 10px;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #333;
  color: #fff;
}

.feature {
  background-image: url(https://storage.ning.com/topology/rest/1.0/file/get/2251235877?profile=original);
  background-position: bottom left;
  color: #fff;
}

.photos {
  background-image: url(http://api.ning.com/files/JPX5gKnxX7KxQGaNYPc8SHoBqmUYgRvOSmlV3QEcz9MCm4VsJOViGcdc3HrHwjauei8Ri*04u9jsInd6ICeLXWa9aeKwNY-0/1290185054.jpeg); 
  color: #fff;
}

.newsy {
  background-image: url(http://api.ning.com/files/pBrEDFyKDmMM-lGKpkLmoWCFVN0GFGGrTTcPtm2IQGy2MVZ9QK6k**WtN-Qoz8G3jgFQE-E74cbax3a35sU1VR8tPRewaGkT/IMG01015201505131119.jpg); 
  color: #fff;
}

.special {
  background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.8)),url(https://storage.ning.com/topology/rest/1.0/file/get/932827868?profile=RESIZE_710x); 
  color: #fff;
  display: flex;
  flex-direction: column;
}

.special h3,
.amazing h3{
  margin-top: auto;
}

.amazing {
  background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.9)), url(http://api.ning.com/files/Y8XlnL4WDeCMNj66-iragXBb*StKHjdIMQHC7anOW9U3VtDVA3NkoMUzpVm*-OVAMnyRFTXDUqJTA5aZcaHwBNOKHDUmiBG8/surveyingjobsboard.png); 
  color: #fff;
  display: flex;
  flex-direction: column;
}

.cta {
  background-color: #a12712;
  color: #fff;
  display: flex;
  flex-direction: column;
}

a.isw-button:link {
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  background-color: #fff;
  color: #333;
  display: block;
  padding: 5px;
  margin: auto auto 20px;
  width: 90%;
  text-align: center;
}

@media (min-width: 500px) {
  .home-hero {
    grid-template-columns: 1fr 1fr;
  }
  
  .feature {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
  
  .special {
    grid-column: 1;
    grid-row: 3 / 6;
  }
  .amazing {
    grid-column: 1;
    grid-row: 6;
  }
  .cta {
    grid-column: 2;
    grid-row: 5 / 7;
  }
}

@media (min-width: 800px) {
   .home-hero {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: minmax(150px, auto) minmax(150px, auto);
    grid-auto-rows: minmax(100px, auto);
  }
  .feature {
    grid-column: 1 ;
    grid-row: 1 / 6;
  }
  
  .special {
    grid-column: 2;
    grid-row: 1 / 4;
  }
  .amazing {
    grid-column: 2;
    grid-row: 4 / 6;
  }
  .cta {
    grid-column: 3;
    grid-row: 3 / 6;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console