I'm studying a bit about svg and found the giant forms incredible on the websites, however I'm having a hard time reproducing correctly. I created a form of size 693x768 that will cut a page, but I can not make it always fill 100% in height. Here pictures to show exactly what is happening: Thisishowthesitenormallyopensona1366x768monitor,butnotewhathappenswhenIchangethemonitorsizeto1024x768: My CSS code is basically this:
#bloco {
background: url("../imgs/form.svg") no-repeat right;
background-size: 50%;
}
And .svg
is this:
<?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>
Summarizing
How do I make the background take full height without resizing in this way?
Note
- 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 sum error. - 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).