Wednesday, April 4, 2018

CSS ribbons?

When would you ever use them? Well, I used this stuff for the first time today to make an element that jutted out a little bit to the left of the items above and below it appear to wrap around its neighbors at the left some.

.active-not-last:before {
   content:"";
   position:absolute;
   left:-1px;
   width:0;
   height:0;
   top: calc(100% + 1px);
   border-right:8px solid #DADADB;
   border-bottom:8px solid transparent;
}

No comments:

Post a Comment