Share the code for generating small dot patterns using CSS

高洛峰
Release: 2017-03-28 10:42:33
Original
4031 people have browsed it

Through the following code, you can generate some small dot decorative patterns on the background of your website. By default, it is used on the body element, but you can also use it on other containers in the web page.

body {
    background: radial-gradient(circle, white 10%, transparent 10%),
    radial-gradient(circle, white 10%, black 10%) 50px 50px;
    background-size: 100px 100px;
}
Copy after login

Share the code for generating small dot patterns using CSS

The above is the detailed content of Share the code for generating small dot patterns using CSS. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template