Home  >  Article  >  Web Front-end  >  Use css to achieve shadow effect

Use css to achieve shadow effect

不言
不言Original
2018-06-12 14:44:481685browse

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>

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!

Statement:
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