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.

  li.item item1
  li.item item2
  li.item item3
  li.item item4
  li.item item5
  li.item item6
  li.item item7
  p Rotate 180 deg
  button.btn.ul Rotate UL
  button.btn.li Rotate LI
              body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  * {
    transition: all 2s;
ul {
  display: flex;
  flex-direction: column; 
  width: 300px;
  border: 15px solid pink;
  border-radius: 10px;
  padding: 25px;
  list-style: none;
  li {
    width: 100%;
    border-radius: 15px;
    padding: 5px 0;
    background: lightgreen;
    color: white;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    &:not(:last-child) {
      margin-bottom: 25px;

ul {
  &.rotate, & li.rotate {
    transform: rotate(180deg);

.btn-group {
  position: absolute;
  top: 15px;
  left: 20px;
  p {
    margin: 0 0 20px 0;
    font-size: 20px;
    letter-spacing: 1px;
  .btn {
    display: block;
    width: 100px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    padding: 8px;
    background: #0080FF;
    color: white;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .5s;
    &:hover {
      background: royalblue;
    if ($(this).hasClass('ul')) {

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