Submitted
HTML and CSS
- HTML
- CSS
Hi, I'm Yohan and new to web dev. My question is how to make background SVG image center in tablet mode using media queries. I tried with below code block and didn't work as i expected. body { background: url(../images/pattern-background-mobile.svg); background-position: center; background-repeat: no-repeat; background-size: cover; }
When I applied the above style, the background image was stretched. How to fix this issue. Thanks in advance, Yohan