Is it possible to put a .svg pattern as a background image, the svg pattern should be resized to the window width and height.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s possible but limited in browser support. Webkit tends to have the best SVG support and IE the worst. You can assign it using CSS and the CSS3 background-size property.
You can wrangle a bit more support by putting the SVG in an
<img>and absolutely positioning and stretching it behind your content. This works because IE historically has more support for SVG as an<img>or<object>than as a CSS resource.