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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <body>
  <h1>Nebula in 6 different spectrums</h1>
  <div class="container">
    <div class="bg radio">
      <p><span>Radio Spectroscopy</span></p>
    </div>
    <div class="bg infrared"> 
      <p>Infrared Light</p>
    </div>
    <div class="bg visible">
      <p>Visible Light</p>
    </div>
    <div class="bg uv">
      <p>Ultraviolet Light</p>
    </div>
    <div class="bg xray">
      <p>X-Ray</p>
    </div>
    <div class="bg gamma">
      <p>Gamma Radiation</p>
    </div>
  </div>
  <span>This CSS doodle is meant to help visualize multilayered fixed DIV backgrounds.</span>

</body>
            
          
!
            
              @import 'https://fonts.googleapis.com/css?family=Open+Sans|Oswald';
body {
  background-color: #040815;
  color: lightgray;
  font-family: Oswald, Arial, sans;
  text-align: center;
  float: none;
  clear: both;
  padding: 0;
  overflow: hidden;
}
h1 {
  font-family: Open Sans, sans;
  height: 50px;
  font-size: 2em;
  font-weight: 700;
  color: white;
  padding: 0;
  background-color: rgba(96, 18, 128, .5);
}
p {
  display: block;
  margin: 0px;
  font-size: 1.5em;
  letter-spacing: 3px;
  height: 60px;
  padding: 0;
  background-color: rgba(53, 7, 170, .5);
}
.container {
  position: relative;
  display: block;
  width: 440px;
  height: 440px;
  border: 5px solid rgba(96, 18, 128, .5);
  border-radius: 10px;
  overflow-x: hidden;
  overflow-y: scroll;
  margin: auto;
}
.bg {
  display: block;
  position: initial;
  width: 440px;
  height: 440px;
  padding: 0;
  overflow: hidden;
}
.radio {
  position: relative;
  background: transparent url("http://stimpygato.com/images/codepen/slide_radio1.jpg") no-repeat fixed;
  background-size: initial;
  background-position: center 98px;
}
.infrared {
  position: relative;
  background: transparent url("http://stimpygato.com/images/codepen/slide_infrared1.jpg") no-repeat fixed;
  background-size: initial;
  background-position: center 98px;
}
.visible {
  position: relative;
  background: transparent url("http://stimpygato.com/images/codepen/slide_visible1.jpg") no-repeat fixed;
  background-size: initial;
  background-position: center 98px;
}
.uv {
  position: relative;
  background: transparent url("http://stimpygato.com/images/codepen/slide_uv1.jpg") no-repeat fixed;
  background-size: initial;
  background-position: center 98px;
}
.xray {
  position: relative;
  background: transparent url("http://stimpygato.com/images/codepen/slide_xray1.jpg") no-repeat fixed;
  background-size: initial;
  background-position: center 98px;
}
.gamma {
  position: relative;
  background: transparent url("http://stimpygato.com/images/codepen/slide_gamma1.jpg") no-repeat fixed;
  background-size: initial;
  background-position: center 98px;
}
            
          
!
999px
Loading ..................

Console