I have a wordpress site/elementor and I want to extend a section/div to the right side outside the main div like in the picture below.
At the moment, the div has a fixed width of 1600px but the div goes beyond the page, which isn’t really best practice and not really responsive.
A size of 100% covers only the main div.
Does anyone have an idea as to how to fix this in css?
4
Answers
Ok, i found a solution with calc.
1280px is the parent div width.
Thanks for your help
overflow: scroll
on a parentYou could use
width: calc(100% + 30px);
on the child to achieve this.Set the overflow to hidden and then set the width beyond the main div.