Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use CSS3 pseudo-elements to build an article watermark background

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

This article mainly shows you "how to use CSS3 pseudo-elements to construct article watermark background", the content is simple and easy to understand, organized clearly, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to use CSS3 pseudo-elements to construct article watermark background" this article bar.

CSS3 pseudo-element constructed article watermark background h2 { position: relative; margin: 0; font-weight: bold; letter-spacing: -0.05rem; line-height: 1; text-transform: uppercase; z-index: 10;}h2:before { content: "2018/08"; font-family: monospace; font-size: 10rem; position: absolute; top: 2rem; left: -2rem; z-index: 0; line-height: 1; color: rgba(50, 25, 0, 0.1);}

The above is "how to use CSS3 pseudo-elements to build an article watermark background" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Elements articles watermarks background content articles learning help easy to understand more organization knowledge editing industry information information channels channels research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker macOS NVidia Microsoft Shulou Technology