cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

            
              h4 At desktop webkit right box text should be gradient color, while in other browsers or mobile text will be set fallback color "#000" specified at affectText param.

.item.first
  h2 affectText: false
  p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum, nam enim nisi. Magnam possimus consectetur voluptatum nostrum consequatur itaque ratione doloremque. Beatae dicta itaque, voluptatem deleniti nobis, sint reiciendis reprehenderit!
.item.second
  h2 affectText: '#000'
  p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum, nam enim nisi. Magnam possimus consectetur voluptatum nostrum consequatur itaque ratione doloremque. Beatae dicta itaque, voluptatem deleniti nobis, sint reiciendis reprehenderit!
            
          
!
            
              body {
  text-align: center;
}

.item {
  position: relative;
  width: 250px;
  text-align: left;
  padding: 0px 20px;
  color: white;
  display: inline-block;
  margin: 5px auto;
  border: 1px solid black;
  z-index: 1;
}

.item p {
  font-weight: 500;
  text-transform: uppercase;
}
            
          
!
            
              new Multiple({
  selector: '.item.first',
  background: 'linear-gradient(rgb(70, 106, 177), #32A668)',
  affectText: false
});

new Multiple({
  selector: '.item.second',
  background: 'linear-gradient(rgb(70, 106, 177), #32A668)',
  affectText: '#000'
});
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console