W3C home > Mailing lists > Public > www-svg@w3.org > February 2002

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

From: Dean Jackson <dean@w3.org>
Date: Mon, 25 Feb 2002 03:10:17 +1100
Message-ID: <3C791069.8080602@w3.org>
To: Tobias Reif <tobiasreif@pinkjuice.com>
CC: www-svg@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT