The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Div not changing % width when container padding changes
I’m having a problem with a div not changing its percentage width when the container it’s in (with relative positioning) changes padding.
The weirdest thing is that I don’t get the bug in Mobile Safari, only on Desktop browsers (Opera, Chrome, FireFox and Safari).
works for me
All that happens for me is that it moves; its `margin: 10px auto;` doesn’t kick in, and its `width: 70%;` doesn’t happen either.
It’s only when I resize the browser that it works.