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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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