Home › Forums › CSS › Vertical space issue between Chrome & Mozilla › Reply To: Vertical space issue between Chrome & Mozilla
January 27, 2017 at 10:48 am
#250609
Participant
Try switching from % to vw instead. It should work the same at small widths, when the parent container is 100% the width of the viewport. The difference is at wider widths when you’ve capped the layout – a % won’t get any bigger past a certain point because it’s based on the (capped) container width, but vw will continue to grow along with the browser window, regardless of any max-width cap on the container. The way to stop that is to switch in a fixed unit (em or whatever) with a media query once you hit the desired breakpoint. Hope that makes sense.