Answer the question
In order to leave comments, you need to log in
How to make SVG fill parent div in Firefox?
This SVG was made to completely fill the parent element and be adaptive, that is, change the width when the browser is resized -
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2250 160" preserveAspectRatio="none"
vector-effect="non-scaling-stroke" style="width: calc(100% - 50px); height: 160px">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question