0
attachment: scroll;
What is the difference between applying the "scroll"-attachment and having no attachment at all? Seems to give the same effect, background images stays while the user scrolls on, but I guess i'm missing something.
1 ответ
+ 2
scroll is default, so setting it or not will generally be be the same
unless of course a certain element inherited a different value, in which case, setting the element's style value to scroll will help override that
Further reading:
https://css-tricks.com/almanac/properties/b/background-attachment/
I hope this helps! 😊