Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SVG do not want stroke weight to scale

Contributor ,
Jun 26, 2023 Jun 26, 2023

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?

TOPICS
How-to
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 26, 2023 Jun 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.

Translate
Adobe
Community Expert ,
Jun 26, 2023 Jun 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 27, 2023 Jun 27, 2023

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

 

vector-effect="non-scaling-stroke"

 

to the code. Works now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 27, 2023 Jun 27, 2023
LATEST

Thank you for returning to post the solution.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines