cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <section class="wrapper">
  <div class="headline">
    <h3>New! General Electric Coloramic Bulbs! Four exciting colors! Decorate a room for $1.16</h3>
  </div>
  <div class="bulbs-row">
    <div class="bulb bulb-1">
      <div class="bulb-name">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/108463/generic-electric-logo.png">
        <p>Dawn</p>
        <p>Pink</p>
      </div>
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 90 90"  xml:space="preserve" class="bulb-img"><path fill="#ffaf9e" d="M53.2,70.2c1.3-16.3,5.5-18.8,10.8-29.6c1-1.5,1.7-3.2,2.3-4.9c0,0,0-0.1,0-0.1h0c0.7-2.2,1.1-4.5,1.1-6.9   C67.5,16.3,57.4,6.2,45,6.2c-12.4,0-22.5,10.1-22.5,22.5c0,2.4,0.4,4.7,1.1,6.9l0,0c0,0.1,0.1,0.2,0.1,0.3c0.4,1.1,0.8,2.2,1.3,3.2   c0.3,0.6,0.6,1.1,1,1.6c5.3,10.7,9.4,13.2,10.8,29.5H53.2z"/><path fill="#ffaf9e" d="M53.3,72.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,71.6,53.3,71.9,53.3,72.3L53.3,72.3z"/><path fill="#ffaf9e" d="M53.3,78.2c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,77.5,53.3,77.8,53.3,78.2L53.3,78.2z"/><path fill="#ffaf9e" d="M53.3,75.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,74.5,53.3,74.9,53.3,75.3L53.3,75.3z"/><path fill="#ffaf9e" d="M51.5,79.5H38.2c0,1,1.7,1.9,4.2,2.2c0.3,1,1.3,1.8,2.5,1.8s2.2-0.8,2.5-1.8C49.8,81.3,51.5,80.5,51.5,79.5   z"/></svg>
    </div>
    <div class="bulb bulb-2">
          <div class="bulb-name">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/108463/generic-electric-logo.png">
        <p>Sky</p>
        <p>Blue</p>
      </div>
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 90 90"  xml:space="preserve" class="bulb-img"><path fill="#a0b6bb" d="M53.2,70.2c1.3-16.3,5.5-18.8,10.8-29.6c1-1.5,1.7-3.2,2.3-4.9c0,0,0-0.1,0-0.1h0c0.7-2.2,1.1-4.5,1.1-6.9   C67.5,16.3,57.4,6.2,45,6.2c-12.4,0-22.5,10.1-22.5,22.5c0,2.4,0.4,4.7,1.1,6.9l0,0c0,0.1,0.1,0.2,0.1,0.3c0.4,1.1,0.8,2.2,1.3,3.2   c0.3,0.6,0.6,1.1,1,1.6c5.3,10.7,9.4,13.2,10.8,29.5H53.2z"/><path fill="#a0b6bb" d="M53.3,72.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,71.6,53.3,71.9,53.3,72.3L53.3,72.3z"/><path fill="#a0b6bb" d="M53.3,78.2c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,77.5,53.3,77.8,53.3,78.2L53.3,78.2z"/><path fill="#a0b6bb" d="M53.3,75.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,74.5,53.3,74.9,53.3,75.3L53.3,75.3z"/><path fill="#a0b6bb" d="M51.5,79.5H38.2c0,1,1.7,1.9,4.2,2.2c0.3,1,1.3,1.8,2.5,1.8s2.2-0.8,2.5-1.8C49.8,81.3,51.5,80.5,51.5,79.5   z"/></svg>
    </div>
    <div class="bulb bulb-3">
          <div class="bulb-name">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/108463/generic-electric-logo.png">
        <p>Sun</p>
        <p>Gold</p>
      </div>
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 90 90"  xml:space="preserve" class="bulb-img"><path fill="#ffd274" d="M53.2,70.2c1.3-16.3,5.5-18.8,10.8-29.6c1-1.5,1.7-3.2,2.3-4.9c0,0,0-0.1,0-0.1h0c0.7-2.2,1.1-4.5,1.1-6.9   C67.5,16.3,57.4,6.2,45,6.2c-12.4,0-22.5,10.1-22.5,22.5c0,2.4,0.4,4.7,1.1,6.9l0,0c0,0.1,0.1,0.2,0.1,0.3c0.4,1.1,0.8,2.2,1.3,3.2   c0.3,0.6,0.6,1.1,1,1.6c5.3,10.7,9.4,13.2,10.8,29.5H53.2z"/><path fill="#ffd274" d="M53.3,72.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,71.6,53.3,71.9,53.3,72.3L53.3,72.3z"/><path fill="#ffd274" d="M53.3,78.2c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,77.5,53.3,77.8,53.3,78.2L53.3,78.2z"/><path fill="#ffd274" d="M53.3,75.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,74.5,53.3,74.9,53.3,75.3L53.3,75.3z"/><path fill="#ffd274" d="M51.5,79.5H38.2c0,1,1.7,1.9,4.2,2.2c0.3,1,1.3,1.8,2.5,1.8s2.2-0.8,2.5-1.8C49.8,81.3,51.5,80.5,51.5,79.5   z"/></svg>
    </div>
    <div class="bulb bulb-4">
          <div class="bulb-name">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/108463/generic-electric-logo.png">
        <p>Spring</p>
        <p>Green</p>
      </div>
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 90 90"  xml:space="preserve" class="bulb-img"><path fill="#bec5ae" d="M53.2,70.2c1.3-16.3,5.5-18.8,10.8-29.6c1-1.5,1.7-3.2,2.3-4.9c0,0,0-0.1,0-0.1h0c0.7-2.2,1.1-4.5,1.1-6.9   C67.5,16.3,57.4,6.2,45,6.2c-12.4,0-22.5,10.1-22.5,22.5c0,2.4,0.4,4.7,1.1,6.9l0,0c0,0.1,0.1,0.2,0.1,0.3c0.4,1.1,0.8,2.2,1.3,3.2   c0.3,0.6,0.6,1.1,1,1.6c5.3,10.7,9.4,13.2,10.8,29.5H53.2z"/><path fill="#bec5ae" d="M53.3,72.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,71.6,53.3,71.9,53.3,72.3L53.3,72.3z"/><path fill="#bec5ae" d="M53.3,78.2c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,77.5,53.3,77.8,53.3,78.2L53.3,78.2z"/><path fill="#bec5ae" d="M53.3,75.3c0,0.4-0.5,0.8-1.1,0.8H37.7c-0.6,0-1.1-0.3-1.1-0.8l0,0c0-0.4,0.5-0.8,1.1-0.8h14.5   C52.9,74.5,53.3,74.9,53.3,75.3L53.3,75.3z"/><path fill="#bec5ae" d="M51.5,79.5H38.2c0,1,1.7,1.9,4.2,2.2c0.3,1,1.3,1.8,2.5,1.8s2.2-0.8,2.5-1.8C49.8,81.3,51.5,80.5,51.5,79.5   z"/></svg>
    </div>
  </div>
  <div class="main-image">
    <div class="color-block-1"></div>
    <div class="color-block-2"></div>
    <div class="color-block-3"></div>
    <div class="color-block-4"></div>
  </div>
  <div class="headline-2">
    <h2>Give your home four "new looks" with <br> new General Electric Coloramic Bulbs</h2>
  </div>
  <div class="info">
    <div class="p1">
      <p><span>Composite photo above</span> shows four ways to decorate a room just by changing from regular bulbs to new G-E Coloramics!</p>
      <p><span>Dawn Pink</span> (left), warm and intimate, gives white table top a rosy glow. And see how it warms up that brass lamp!</p>
      <p><span>Sky Blue</span>, lovely to complexions, turns sofa a richer red -- makes room look larger!</p> 
    </div> 
    <div class="p2">
      <p><span>Sun Gold</span>, lighthearted and mellow, enhances all colors, adds lustre to carpet's green.</p>
      <p><span>Spring Green</span>, fresh and cool, heightens green colors, brightens yellow chair.</p>
      <p><span>Flatter your rugs and draperies</span> -- and your complexion too! Give your living room a "party" look. Add charm to other rooms. Try all four G-E Coloramic bulbs tonight!</p>
    </div>  
    <div class="box">
      <h5>Try all four colors <br> tonight . . .   only 1.16</h5>
      <p>It's fun to "bulbsnatch" with G-E Coloramics! Every time you change bulbs, you give the room a new look! Only General Electic gives you <span class=four>four</span> beautiful pastel colors!</p>
      <ul>
        <li>75 or 100 watt . . . . . . . .  29</li>
        <li>50-100-150 watt 3-lite . . 69</li>
      </ul>
      <p><span>Free folder</span> on G-E Coloramic bulbs! Write General Electric Co, Dept. BHG-107, Nela Park, Cleveland 12, Ohio.</p>
      <img id="box-img" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/108463/mediallionround.png">
    </div>
    <div class="slogan">
      <p class="progress">Progress Is Our Most Important Product</p>
      <p class="ge">General <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/108463/generic-electric-logo.png"> Electric</p>
    </div>
  </div>
</section>
  
<!-- LIGHTBULB SVG created by Created by Frederick Allen from the Noun Project 

Living Room image - Better Homes & Gardens, Oct. 1957. Architect: William R. Jenkins, Houston, TX. found on http://www.midcenturia.com/2011/07/

-->



            
          
!
            
              * {
  box-sizing: border-box;
} 

body {
  background-color: #fde3ca;
  font-size: 19px;
  
}

span {
  font-weight: bold;
}

span.four {
  font-weight: normal;
  font-style: italic;
}

.wrapper {
  display: grid;
	grid-template-columns: repeat(4, [col] auto) ;
	grid-template-rows: repeat(5, [row] auto);
  padding: 2%;
 
}

.headline {
  grid-column: col / span 4;
	grid-row: row;
  font-family: 'News Cycle', sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0 auto;
  white-space: nowrap;
}

.bulbs-row {
  grid-column: col / span 4;
	grid-row: row 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.bulb {
  border: 1px dotted red;
  text-align: center;
  
}

.bulb-1 {
  grid-column: 1;
}

.bulb-2 {
   grid-column: 2;
  border-left: none;
}

.bulb-3 {
   grid-column: 3;
  border-left: none;
}

.bulb-4 {
   grid-column: 4;
  border-left: none;
}


.bulb-img {
  height: 400px;
  width: 100%;
  transform: rotate(180deg);  
}

.bulb-name {
  float: left;
  z-index: 1;
  position: absolute;
  padding: 0.5% 2%;
  margin-top: 3%;
}

.bulb-name img {
  height: 50px;
  width: auto;
}

.bulb-name p {
  margin: 0;
  font-family: 'News Cycle', sans-serif;
  text-transform: uppercase;
  font-size: 1.17em;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1;
}




.main-image {
  width: 100%;
  height: 600px;
  grid-column: col / span 4;
	grid-row: row 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/108463/e48324977936b91e56ac698e3fd62781.jpg) no-repeat center;
  background-size: cover;
}


.color-block-1 {
  grid-column: 1;
  background-color: rgba(255, 175, 158, 0.4);

}

.color-block-2 {
   grid-column: 2;
   background-color: rgba(160, 182, 187, 0.4);
}

.color-block-3 {
   grid-column: 3;
    background-color: rgba(255, 210, 116, 0.4);
}

.color-block-4 {
   grid-column: 4;
  background-color: rgba(190, 197, 174, 0.4);
}

.headline-2 {
  grid-column: col / span 4;
	grid-row: row 4;
  margin: 1% auto 0 auto;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 8px;
  word-spacing: 10px;
 
}

.info {
  grid-column: col / span 4;
	grid-row: row 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}


.p1 {
  grid-column: 1 / 2;
	grid-row: 1 / 2;
  padding: 0 3%;
}

.p2 {
  grid-column: 2 / 3;
	grid-row: 1 / 2;
  padding: 0 3%;
}

.box {
  grid-column: 3;
  grid-row: 1 / 3;
  border: 2px solid black;
  align-self: center;
  padding: 8%;
}

.box h5 {
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto;
  font-size: 1.2rem;
  font-family: 'News Cycle', sans-serif;
  letter-spacing: 3px;
}

.box ul {
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.box p {
  margin: 0;
}

#box-img {
  height: 115px;
  width: auto;
  z-index: 1;
  position: absolute;
  margin-left: -114px;
  margin-top: -104px;
}

.slogan {
  grid-column: 1 / 3;
	grid-row: 2;
  line-height: 0;
  text-align: center;
}

.slogan p {
  margin: 2% 0 0 0;
}

.progress {
  font-family: 'Kalam', cursive;
  font-style: italic;
  font-size: 2rem;
}

.ge {
  font-family: 'News Cycle', sans-serif;
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;

}


.ge img {
  height: 80px;
  vertical-align: middle;
  margin: 0 -1% 2% -1%;
 
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console