UGURUs by DigitalOcean logo

UGURUS, powered by DigitalOcean, offers elite training and mentorship for Agency Owners. Join the Agency Accelerator for free to get more leads, land high-value deals, and build recurring revenue!

Direct link to the article border-image-slice

border-image-slice

The CSS border-image-slice tells the browser where to “slice” an image being used to create the pieces of an element’s borders.

.element {
  border-style: ridge;
  border-width: 3rem;
  border-image-source: url('path/to/image.jpg');
  border-image-slice: 30%;
  border-image-repeat: repeat; 
}

The border-image-slice property is defined in …

Avatar of Sunkanmi Fafowora
Sunkanmi Fafowora on
Direct link to the article :has()

:has()

The CSS :has() pseudo-class selects elements that contain other elements that match the selector passed into its arguments. It’s often referred to as “the parent selector” because of its ability to select a parent element based on the child elements …

Avatar of Mojtaba Seyedi
Mojtaba Seyedi on (Updated on )