Skip to main content
Inspiring
June 26, 2023
해결됨

SVG do not want stroke weight to scale

  • June 26, 2023
  • 1 답변
  • 1234 조회

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?

이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

Monika Gause
Community Expert
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.

markeeeee작성자
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.