Pen Settings



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


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


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.


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.


  <div class="card">
  <div class="card-img" id="marin"> </div>
  <div class="card-discription"> 
    <h2 id="visit-header"> Visit Marin County </h2> 
     <h2 id="visit-state"> California </h2> 
    <p> Just north of San Francisco and in driving distance of Napa, Marin is the nature part of life everyone has been missing. From its rolling hills, to its redwood tree forests; Marin is home to unforgettable hikes and panoramic views. Popular spots are Muir Woods National Monument, Mount Tamalpais State Park, and Bolinas Ridge. </p>
    <button id="booknowbtn"> <a href=""> View more information </a> </button> 
   <div class="card">
  <div class="card-img" id="yosemite"> </div>
  <div class="card-discription"> 
    <h2 id="visit-header">Visit Yosemite </h2> 
     <h2 id="visit-state"> California </h2> 
    <p> Yosemite is a jaw dropping National Park, hidden away in California’s Sierra Nevada mountains. It’s famed for its giant ancient sequoia trees and iconic vistas. After a long day hiking Bridalveil Fall, El Capitan, or Half Dome; you can wind down at Yosemite Village which has shops, restaurants, lodging.  </p>
    <button id="booknowbtn"> <a href=""> View more information </a> </button>
   <div class="card">
  <div class="card-img" id="sb"> </div>
  <div class="card-discription"> 
    <h2 id="visit-header"> Visit Santa Barbara </h2> 
     <h2 id="visit-state"> California </h2> 
    <p> Santa Barbara is a city on the central California coast, with the Santa Ynez Mountains as dramatic backdrop. Downtown, Mediterranean-style white stucco buildings with red-tile roofs reflect the city’s Spanish colonial heritage. Upscale boutiques and restaurants offering local wines and seasonal fare line State Street. </p>
    <button id="booknowbtn"> <a href=""> View more information </a> </button>
   <div class="card">
  <div class="card-img"> </div>
  <div class="card-discription"> 
    <h2 id="visit-header"> Visit Austin </h2> 
     <h2 id="visit-state"> Texas </h2> 
    <p> Austin is the state capital of Texas, an inland city bordering the Hill Country region. Home to the famous 6th Street bar scene, Austin is known for its eclectic live-music scene centered around country, blues, and rock. Its many parks and lakes are popular for hiking, biking, swimming and boating. </p>
    <button id="booknowbtn"> <a href=""> View more information </a> </button>


                body{ display: flex; flex-wrap: wrap; justify-content: center; background: grey; padding-top: 20px;
background-image: url("");

/* */


.card{margin-top: 50px;
background: #17141d;
background: white;
display: grid;
grid-template-columns: 300px;
grid-template-rows: 210px 210px 80px;
grid-template-areas: "image" "text" "bottom";
font-family: roboto;
border-radius: 18px;
box-shadow: -1rem 0 3rem #000;
text-align: center;
overflow: hidden;
transition: all 0.6s ease;
  //color: white;

  grid-area: image;
  background: linear-gradient(#fff0 0%, #fff0, 70%, #1d1d1d 100%), url("");
  background-size: cover;
 //border-radius: 0 0 60% 60% /0 0 20% 20%;

  grid-area: text;
  font-family: roboto;
  margin-top: -10px;

.card-discription > p{
margin: 15px; margin-top: -10px;

#visit-header, #visit-state{
  font-family: arial;
  text-transform: uppercase;

#visit-state{font-size: 18px;
margin-top: -18px; margin-bottom: 20px;
 color: #aaa;

// background: #e9443c;
  background: #54c3dd;
  linear-gradient(#f2eecb, #cfb997);
 grid-area: bottom;
 border: none;
 font-size: 20px;
 color: white;
 margin-top: 30px;

#booknowbtn:hover{cursor: pointer; background: #54c3dd;
background: #029be6;
  background: #51a7e1; 
  background: #2e709a;

  transform: translateY(-1rem);

  transform: translateX(130px);

  margin-left: -130px;

/* #sb{background-image: url("*HXChk_VSESSUYNR3VgCo_Q.jpeg")} */

  background-position: bottom;
  background-image: url("")}

/* // */
#yosemite{background-image: url("")}

#marin{background-image: url("")}

a{text-decoration: none;
color: white;}

/* RGB */

.rgb::after {
  background: linear-gradient(45deg,
  #ff0000 0%, 
  #ff9a00 10%,
  #d0de21 20%,
  #4fdc4a 30%, 
  #3fdad8 40%,
  #2fc9e2 50%, 
  #1c7fee 60%, 
  #5f15f2 70%, 
  #ba0cf8 80%, 
  #fb07d9 90%, 
  #ff0000 100%  )
  repeat 0% 0% / 300% 100%;
  position: absolute;
  inset: -3px;

@keyframes rgb {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}

.rgb::after {
  border-radius: 16px;
  filter: blur(8px);
  transform: translateZ(-1px); /*or z-index */
  animation: rgb 6s linear infinite;

@media(max-width: 900px){
  body{height: auto;}
  .card{width: 160px; height: 300px;}
  .card{font-size: 10px;}
  .card-img{background-size: cover; width:160px; height: 110px; margin-bottom: 0px;}
  .card-discription{margin-top: -100px; width:160px;}
  #visit-header{margin: 2px; margin-bottom: 20px;}
  #visit-state{margin-bottom: 10px;}