Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use css3 to realize the sunken and protruding effect of fonts

Shulou Source: shulou.com Published: 2022-06-01 11:43:54 10月04日 Update

This article mainly introduces how to use css3 to achieve the font sunken protruding effect, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Examples are as follows:

Css3 fonts achieve three-dimensional effect

Body {

Background:gray

}

H2 {

Font-size:200px

Color:gray

Text-shadow:3px3px2pxblack

-3pxMur3px2pxwhite3px2pxwhite;}

H2:hover {

Text-shadow:3px3px2pxwhite

-3px-3px2pxblack

}

Thank you for reading this article carefully. I hope the article "how to use css3 to achieve the sunken protruding effect of fonts" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Articles fonts effects prominence value interest at the same time more friends knowledge examples three-dimensional three-dimensional editing industry information information channels channels reference learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info MariaDB NVidia Shulou Information