Skip to main content
Inspiring
June 26, 2023
Answered

SVG do not want stroke weight to scale

  • June 26, 2023
  • 1 reply
  • 1229 views

I'm creating a SVG file in Illustrator to use on a responsive website. I always want the stroke weight to be 1pt regardless of the scale / size that the image displays on the website.

 

Is this possible within Illustrator?

This topic has been closed for replies.
Correct answer Monika Gause

You will have to use CSS styling for that. This has to be coded outside of Illustrator. You cannot do that in Illustrator.

1 reply

Monika Gause
Community Expert
Monika GauseCommunity ExpertCorrect answer
Community Expert
June 26, 2023

You will have to use CSS styling for that. This has to be coded outside of Illustrator. You cannot do that in Illustrator.

markeeeeeAuthor
Inspiring
June 27, 2023

I've opened the SVG file in a text editor and added 

 

vector-effect="non-scaling-stroke"

 

to the code. Works now.

Doug A Roberts
Community Expert
Community Expert
June 27, 2023

Thank you for returning to post the solution.