Use css to achieve shadow effect

不言
Release: 2018-06-12 14:44:48
Original
1689 people have browsed it

This article mainly introduces the use of css to achieve shadow effects, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

Realizing css shadow effects

.tesr{
    width: 96%;
    margin-left: 2%;
    padding-top: 5%;
    margin-top: 5%;
    box-shadow: -2px 0 0 #1aad19, //左阴影
                                   0 -2px 0 #3d4145,//上
                                   0 2px 0 #5340e6, //下
                                   2px 0 0 #f43530;//右
    height: 200px;
    margin-bottom: 10%;
}
 <p class="tesr">    </p>
Copy after login

The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

How to use CSS to clear floating methods

Creating a webpage dotted line with the border attribute in css

The above is the detailed content of Use css to achieve shadow effect. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!