The site I am working on: https://tricycle-203819.appspot.com/ I would like to replicate the effect on this site where there's multiple sections, and the child divs have margins around the sections: https://www.newyorker.com/
On my site, the div container-spice
's width and margin to the left and right is set using javascript on load, and on window size. I would like the children of left-container
, which is a child of container-spice
, to have a margin on the right that is of some constant pixel.
Changing the padding-right
and margin-right
property of left-container
do not achieve this effect. I would like to avoid changing the properties of the children of left-container
if possible, since they will be reused elsewhere.