css - Scale svg background image discarding aspect ratio -
i have svg image scale, when scale it keeps aspect ratio bottom or top part of image cut off, there can fills page , doesn't keep it's aspect ratio?
this using:
body { background-image: url(/bg.svg); background-repeat: no-repeat; background-size: cover; background-position: top center; }
i not sure if has effect on anything, have in html well
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Comments
Post a Comment