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. 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

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

              
                <section class="main-content">
        <h1>Local Attractions</h1>
        <p class="sub-heading">Kid Friendly Restaurants</p>
        
        <!--Start Section-->
        <div class="attractions-grid--section-heading">
            <!--<img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/themes/embreyrealty-theme/images/small-diamond-img.png" alt="Embrey Diamond Logo Icon">-->
            <h2 class="attractions-grid--section-title">Alamo Heights & Pearl Brewery Area</h2>
        </div>
        
        <!--Start Grid-->
               <section class="attractions-grid atgrid1">
            <div class="attractions-grid--card atgrid--card1">
                    <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/tycoon-flats.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">Tycoon Flats</h2>
                <p class="atgrid--card-address">2926 N.St. Marys</p>
                <p class="atgrid--card-description">Play Ground</p>
            </div>
            <div class="attractions-grid--card atgrid--card2">
                <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/the-cove-embrey-realty.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">The Cove</h2>
                <p class="atgrid--card-address">606 W Cypress</p>
                <p class="atgrid--card-description">Play Ground</p>
            </div>
            <div class="attractions-grid--card atgrid--card3">
                <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/betos-embrey-realty.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">Beto's</h2>
                <p class="atgrid--card-address">8142 Broadway</p>
                <p class="atgrid--card-description">Play Ground</p>
            </div>
            <div class="attractions-grid--card atgrid--card4">
                <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/purple-garlic-embrey-realty.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">Purple Garlic</h2>
                <p class="atgrid--card-address">1017 Austin Hwy</p>
                <p class="atgrid--card-description">Sand Pit</p>
            </div>
            <div class="attractions-grid--card atgrid--card5">
                <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/street-fare-sa-embrey-reatly.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">Street Fare SA</h2>
                <p class="atgrid--card-address">1916 Austin Hw</p>
                <p class="atgrid--card-description">Food Trucks &amp; Play Ground</p>
            </div>
            <div class="attractions-grid--card atgrid--card6">
                <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/grayze-embrey-realty.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">Graze</h2>
                <p class="atgrid--card-address">521 E Grayson</p>
                <p class="atgrid--card-description">Blocks 7 Gravel Yard</p>
            </div>
            <div class="attractions-grid--card atgrid--card7">
                <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/burgerfi-embrey-realty.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">BurgerFi   </h2>
                <p class="atgrid--card-address">Blocks 7 Gravel Yard</p>
                <p class="atgrid--card-description">Play Ground</p>
            </div>
            <div class="attractions-grid--card atgrid--card8">
                <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/tribeca212-embrey-realty.jpg" class="atgrid--card-image">
                <h2 class="atgrid--card-heading">Tribeca 212</h2>
                <p class="atgrid--card-address">4331 McCullough</p>
                <p class="atgrid--card-description">Indoor Play Room</p>
            </div>
        </section><!-- End Attractions Grid-->

         <!--Start Section-->
         <div class="attractions-grid--section-heading">
                <!--<img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/themes/embreyrealty-theme/images/small-diamond-img.png" alt="Embrey Diamond Logo Icon">-->
                <h2 class="attractions-grid--section-title">Downtown Area</h2>
            </div>
            
            <!--Start Grid-->
                   <section class="attractions-grid atgrid2">
                <div class="attractions-grid--card atgrid--card1">
                        <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/dough-embrey-realty.jpg" class="atgrid--card-image">
                    <h2 class="atgrid--card-heading">Dough</h2>
                    <p class="atgrid--card-address">518 S. Alamo</p>
                    <p class="atgrid--card-description">Play Ground Adjacent Hemisfair Park</p>
                </div>
                <div class="attractions-grid--card atgrid--card2">
                    <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/alamo-brewery-embery-realty.jpg" class="atgrid--card-image">
                    <h2 class="atgrid--card-heading">Alamo Brewery</h2>
                    <p class="atgrid--card-address">202 Lamar</p>
                    <p class="atgrid--card-description">Patio Space</p>
                </div>
                <div class="attractions-grid--card atgrid--card3">
                    <img src="https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/uploads/2019/08/friendly-spot-embrey-realty.jpg" class="atgrid--card-image">
                    <h2 class="atgrid--card-heading">Friendly Spot</h2>
                    <p class="atgrid--card-address">943 S. Alamo</p>
                    <p class="atgrid--card-description">Play Ground & Dog Friendly</p>
                </div>
                </div>
            </section><!-- End Attractions Grid-->
    </section><!-- End Main Content -->
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Montserrat:600|Playfair+Display:700&display=swap');

// Colors
$main: #12254b;
$secondary: #595a5c;
$highlight: #fff685;

// Fonts
$serif: 'Playfair Display', serif;
$sans-serif: 'Montserrat', sans-serif;

* {
  box-sizing: border-box;
}

.main-content {
  margin: 0 15%;
}

h1 {
  font-family: $serif;
  color: $main;
  font-size: 3.5em;
  margin-bottom: 0;
}

.attractions-grid--section-heading h2 {
  /*border-bottom: 10px solid $highlight;*/
  text-decoration: underline;
  text-decoration-color: $highlight;
  text-underline-offset: 4px;
  text-decoration-thickness: 8px;
  margin-bottom: 1.8em;
}

.attractions-grid--section-heading h2::before {
  content: '';
  display: inline-block;
  width: 60px;
  height: 60px;
  padding-right: 12px;
  position: relative;
    top: 20px;
  background: url(https://wp0719.upupload.com/blog68536/tfete598dl68536/wp-content/themes/embreyrealty-theme/images/small-diamond-img.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.sub-heading {
  font-family: $sans-serif;
  color: $secondary;
  font-size: 1.4em;
  margin: 0 0 2% 0;
}

/*.attractions-grid--section-heading {
  display: flex;
  justify-content: flex-end;
  margin: 3% 0 3% 0;
}*/

.attractions-grid--section-heading img {
  margin-right: 1%;}

.attractions-grid--section-title {
  font-family: $serif;
  color: $main;
  font-size: 2em;
  text-align: right;
  /*border-bottom: 10px solid $highlight;*/
  line-height: .55em;
}

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-column-gap: 25px;
  grid-row-gap: 40px;
  margin: 1% 0 8% 0;
}

.attractions-grid img {
  object-fit: cover;
  width: 100%;
  max-height: 100%;
}

.attractions-grid--card {
  min-width: 250px;
  background: #ffffff;
  box-shadow: 2px 2px 8px rgba(0,0,0,.1);
  text-align: center;
}

.atgrid--card-heading {
  font-family: $sans-serif;
  font-size: 1.4em;
  letter-spacing: .03em;
  background: $main;
  color: #ffffff;
  margin: -3% 0 1% 0;
  padding: 5% 0;
}

.atgrid--card-address {
  font-family: $sans-serif;
  font-size: 1.2em;
  letter-spacing: .05em;
  color: $main;
  margin: 6% 0 0 0;
}

.atgrid--card-description {
  font-family: $sans-serif;
  font-size: 1em;
  line-height: 1.5em;
  color: $secondary;
  margin: 2% 10% 8%;
}


@media only screen and (max-width: 920px) {
  
  .attractions-grid--section-heading {
    margin: 10% 0 4% 0;
  }
  
  .attractions-grid--section-title {
  font-size: 1.65em;
  text-align: right;
  border-bottom: 10px solid $highlight;
  line-height: 28px;
}
}
              
            
!

JS

              
                
              
            
!
999px

Console