svg - Stroke width within viewBox -


i use viewbox simulate percentage values path that:

<svg width="500" height="500" viewbox="0 0 100 100"> 

which means 1 unit has 5px. works expected except stroke 5px width. how can set width of stroke 1px ? i've tried stroke-width:1px didn't work.

use vector-effect.

<line ... stroke-width="1px" vector-effect="non-scaling-stroke" /> 

http://www.w3.org/tr/svgtiny12/painting.html#nonscalingstroke


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -