DigitalOcean and CSS-Tricks logos

CSS-Tricks is powered by DigitalOcean. Make your site part of the leading solution for simple and scalable cloud-based hosting with a free $200 credit to get you started!

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 )
Direct link to the article Setting up a screen reader testing environment on your computer

Setting up a screen reader testing environment on your computer

Direct Link

Sara Soueidan with everything you need, from what screen reading options are out there all the way to setting up virtual machines for them, installing them, and confguring keyboard options. It’s truly a one-stop reference that pulls together disparate …

Avatar of Geoff Graham
Shared by Geoff Graham on
Keep browsing in the archives