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

SVG do not want stroke weight to scale

Contributor ,
Jun 26, 2023 Jun 26, 2023

Copy link to clipboard

Copied

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

Views

525

Translate

Translate

Report

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.

Votes

Translate

Translate
Adobe
Community Expert ,
Jun 26, 2023 Jun 26, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

 

vector-effect="non-scaling-stroke"

 

to the code. Works now.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank you for returning to post the solution.

Votes

Translate

Translate

Report

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