Re: Why do some SVG scale and others don't?

Tobias Reif wrote:
> Dean Jackson wrote:
> 
>  > The standard way is to use the viewBox attribute. If I don't
>  > want to specify an exact size I usually do something like this.
>  >
>  > <svg width="100%" height="100%" viewBox="0 0 500 500">
> 
> which, AFAIK, is the same as
> 
> <svg viewBox="0 0 500 500">

Right, the default values for width and height are "100%". But
I put them in to make it easier to change if I ever want to.
It's just a personal thing.

Dean

Received on Sunday, 24 February 2002 11:10:49 UTC