• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

How can I change my SVG path to width: 7.58 and height: 16.62. (7.58x16.62)?

user101

New Coder
How can I change my SVG path to width: 7.58 and height: 16.62. (7.58x16.62)?

My SVG icon is 19x19px but I'm looking to change the SVG PATH to width: 7.58 and height: 16.62.

CSS:
    svg {
      border: 1px solid black;
      width: 19px;
      height: 19px;
    }

    div {
      margin-left: 10px;
      width: 170px;
      height: 170px;
    }


JavaScript:
    <svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
        <path d="M1.01099 5.36841L8.42124 12.5263L16.2215 5.36841" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"/>
    </svg>

Screenshot 2022-11-12 at 14.32.23.png

Currently my SVG path size is 15.21x7.16 and I need to make the svg path size width: 7.58 and height: 16.62.

Jsfiddle svg path incorrect should be the other way around, with the correct values
 
Top