@mkboris
Posted
Here's how another way you can place the background patterns
body {
--bg-set: 28rem;
background-image: url("../images/bg-pattern-top.svg"),
url("../images/bg-pattern-bottom.svg");
background-repeat: no-repeat, no-repeat;
background-position: calc(50% - var(--bg-set)) calc(50% - var(--bg-set)),
calc(50% + var(--bg-set)) calc(50% + var(--bg-set));
}
Marked as helpful