Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • 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.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • 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
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom