How to set css border shadow

藏色散人
Release: 2023-01-05 16:07:17
Original
2577 people have browsed it

In CSS, you can set one or more drop-down shadow boxes through the box-shadow attribute. The usage syntax of this attribute is such as "box-shadow:Xpx Ypx Zpx #888888;", where X represents the horizontal shadow, Y represents vertical shadow, Z represents gradient effect, and "#888888" represents shadow color.

How to set css border shadow

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

CSS Set Border Shadow Effect

The box-shadow property can set one or more drop-down shadow boxes.

box-shadow: Xpx Ypx Zpx #888888;
Copy after login

X: Horizontal shadow (offset value)

Y: Vertical shadow (offset value)

Z: Gradient effect

#888888: Shadow color

    
  
Copy after login

[Recommended learning:css video tutorial

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

Related labels:
css
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
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!