Home  >  Article  >  Web Front-end  >  Share the code for generating small dot patterns using CSS

Share the code for generating small dot patterns using CSS

高洛峰
高洛峰Original
2017-03-28 10:42:334021browse

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;
}

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!

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