2
I’m studying a little bit about svg And I found the giant shapes on the sites amazing, but I’m having a really hard time reproducing correctly. I created a 693x768 shape that will cut a page, but I can’t make it always 100% tall. Here images to show exactly what is happening: This is how the site is normally open on a 1366x768 monitor, but note what happens when I change the monitor size to 1024x768: My CSS code is basically this:
#bloco {
background: url("../imgs/form.svg") no-repeat right;
background-size: 50%;
}
And the .svg
that’s the one:
<?xml version="1.0" standalone="no"?>
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="693.000000pt" height="768.000000pt" viewBox="0 0 693.000000 768.000000" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,768.000000) scale(0.100000,-0.100000)" fill="#333" stroke="none">
<path d="M3562 7638 c-36 -79 -3534 -7583 -3548 -7610 l-15 -28 3466 0 3465 0 0 3840 0 3840 -1675 0 -1674 0 -19 -42z"/>
</g>
</svg>
In short
How do I make the background take all the height without being resized in this way?
Observing
- I made the image first in Photoshop and used a tool to convert it to
.svg
. I suspect that if the code.svg
is fixed maybe the mistake goes away. - The background is only resized when the width decreases and the height of the window does not follow (as if it were a mathematical reason).