John Davidson

php - Increase size of SVG without CSS

0 comments
Message:


I have the following SVG file, which includes a polyline




<?xml version="1.0" encoding="utf-8"?>
<svg
width="280"
height="280"
viewBox="0 0 140 140"
stroke="blue"
fill="none">
<polyline points="21,14 18,14 15,7 10,17 7,11 5,14 3,14" />
</svg>


My Answer:



To increase the size of the SVG without using CSS, you can simply change the width and height attributes in the tag to the desired dimensions. For example, to double the size of the SVG, you can change the width and height to 200:



This will increase the size of the SVG while maintaining the proportions of the polyline.

Rate this post

3 of 5 based on 9948 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us