Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use pseudo elements to realize the bottom boundary with angles in css

Shulou Source: shulou.com Published: 2022-06-01 04:01:08 10月02日 Update

This article mainly introduces how css uses pseudo elements to achieve the bottom boundary with an angle. it is introduced in great detail and has a certain reference value. Interested friends must read it!

Pseudo elements achieve angled bottom boundaries (sloped boundaries)

Principle: modify the webkit-transform: skewY property to change the inclination (the same is true of rotation)

.edge-bottom {position: relative; z-index: 1;} .edge-- bottom:after {background: inherit; content:''; display: block; height: 50%; left: 0; position: absolute; right: 0; z-index:-1;} .edge-- bottom:after {bottom: 0;-webkit-transform: skewY (- 1.5deg);-ms-transform: skewY (- 1.5deg) Transform: skewY (- 1.5deg);-webkit-transform-origin: 100%;-ms-transform-origin: 100%; transform-origin: 100%;}

This is all the content of the article "how css uses pseudo elements to achieve angled bottom boundaries". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Boundaries elements bottom angle content articles values tilts interests principles guys buddies attributes more knowledge industry information information channels truth channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Microsoft Shulou Information OPPO Reno Redmi