Home › Forums › CSS › Negative margins on nested elements › Reply To: Negative margins on nested elements
March 7, 2016 at 4:09 pm
#238820
Max Fenton
Participant
Oh, hey. The codepen above helped a bunch! I was running into a very similar problem and it turns out I was trying to expand the width (with negative margins) of a <figure>
and forgot that a reset.css had added a max-width: 100% to that element. Whoops! max-width: none
solved it.