W3C home > Mailing lists > Public > www-svg@w3.org > July 2004

units

From: MenTaLguY <mental@rydia.net>
Date: Sun, 11 Jul 2004 11:56:20 -0400
To: SVG List <www-svg@w3.org>
Cc: bulia byak <buliabyak@gmail.com>
Message-Id: <1089561379.29958.17.camel@cato.moonbase>
Here's a bit of a strange question, though perhaps I'm missing something
obvious..

Let's say that I have a document like this:

 <svg width="140px" height="100px" 
      style="fill:blue;stroke:black;stroke-width:2px">
   <rect x="20px" y="20px" width="100px" height="20px"/>
   <path d="M20,60L120,60L120,80L20,80L20,60z"/>
 </svg>

The two shapes appear identical, including apparent stroke weight. 
Fine.

Now, how do I do this using any other unit besides px?

-mental

Received on Sunday, 11 July 2004 13:16:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:54 UTC