Face this is with background-size
if needed and background-repeat
.
In the example here is just an image that repeats itself horizontally and vertically occupying the entire page, but in reality the image has 100px X 100px with size of 50px, the size of the BG is optional and you use if you want to control the size of the Pattern.
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
background-image: url(https://www.lokoloko.es/16144-small_default/geometric-pattern-pack-234-pieces.jpg), linear-gradient(red, blue);
background-repeat: repeat;
background-size: 50px;
}
This is the original image that they used on the website that you quoted as reference, and behind it I made a linear-gradiente
to give the background color
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
background-image: url(https://blackrockdigital.github.io/startbootstrap-new-age/img/bg-pattern.png), linear-gradient(to left, purple, tomato);
background-repeat: repeat;
}
OBS: Image link of the website you mentioned as an example: https://blackrockdigital.github.io/startbootstrap-new-age/img/bg-pattern.png
that’s right! thank you very much friend!
– SHRIMP
@hunterxhunter No problem tmj! The cool technique is that you can with a small and lightweight image cover the whole screen!
– hugocsl
Absolutely! Just one more thing, you can put 3 colors on this gradient?
– SHRIMP
@hunterxhunter has yes my dear, just put an extra color on the list
linear-gradient(to left, red, blue, green)
after a look at this link https://www.w3schools.com/css/css3_gradients.asp– hugocsl