Background not fitting the size of the page


On my site I have an element which has six vertical lines that are used as a grid background.
Does anyone know how to set the length of the background to end after the last element on the page?

One solution would be to manually set the height of the background manually for every page but I’m wondering if there’s a possibility to somehow set an automatic height of the background that would inherit the height of the body.

Thank you!

Here is my site Read-Only: Webflow - Dragana's Portfolio

hi @acarinha

  1. set your bg-linije position: fixed it should work

HINT: the best practice is to avoid fixed values, so your line(s) should be set to height: 100% instead fixed 3500px

Hope this will help to solve your request

1 Like

It helped, thank you! :slight_smile: