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.

            
              <h1>linear-gradient</h1>
<div class="box box01">
  <h2>repeating-linear-gradient(cyan ,yellow 20%, cyan 30%)</h2>
</div>
<div class="box box02">
  <h2>repeating-radial-gradient(fuchsia, yellow 10%) 100px 100px</h2>
</div>

</div>
<div class="box box03">
  <h2 class="flexible-size">background: repeating-linear-gradient(-45deg, transparent, transparent 25px, rgba(255,255,255,1) 25px, rgba(255,255,255,1) 50px);<br>background-color: black;</h2>
</div>

<div class="box box04">
  <h2 class="flexible-size">background: repeating-radial-gradient(at left top, rgb(0, 165, 223) 0%, rgb(62, 20, 123) 6.6%, rgb(226, 0, 121) 13.2%, rgb(223, 19, 44) 18.8%, rgb(243, 239, 21) 24.1%, rgb(0, 152, 71) 26.6%);</h2>
</div>
            
          
!
            
              h1 {
  text-align: center;  
}

h2 {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translate(0, -50%);
  color: #fff;
  text-shadow: 1px 1px rgba(0,0,0,0.5);
}

.box {
  position: relative;
  margin: 0 auto;
  width: 80%;
  height: 200px;
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
  overflow: scroll;
}

.box01 {
   background: repeating-linear-gradient(cyan ,yellow 20%, cyan 30%);
}

.box02 {
  margin-top: 30px;
  background: repeating-radial-gradient(fuchsia, yellow 10%) 100px 100px;
}

.box03 {
  h2 {
    color: lime; 
  }
  margin-top: 30px;
  background: repeating-linear-gradient(
              -45deg, 
              transparent, 
              transparent 25px, 
              rgba(255,255,255,1) 25px, 
              rgba(255,255,255,1) 50px);
  background-color: black;
}

.box04 {
  margin-top: 30px;
  background: repeating-radial-gradient(
              at top, 
              rgb(0, 165, 223) 0%, 
              rgb(62, 20, 123) 6.6%, 
              rgb(226, 0, 121) 13.2%, 
              rgb(223, 19, 44) 18.8%, 
              rgb(243, 239, 21) 24.1%, 
              rgb(0, 152, 71) 26.6%);
}

@media only screen and (max-width: 415px){
  .flexible-size {
    font-size: 1.15rem;
  }
}
            
          
!
999px
Loading ..................

Console