[svg-developers] height and width in svg element

2010-08-12 Thread David Bellot
Hi again, today I've got plenty of questions for you, SVG fellows... I wrote this simple file but I don't get what I expected. I want my svg element to get its dimensions from the CSS. But it doesn't get it. Therefore the rectangle I put takes 100% of the screen. If I put the dimensions directly

Re: [svg-developers] height and width in svg element

2010-08-12 Thread Jacob Beard
Hi David, See Jon Ferallio's comments about attributes vs. CSS properties in SVG here: http://tech.groups.yahoo.com/group/svg-developers/message/61991 Jake On 10-08-11 09:28 AM, David Bellot wrote: Hi again, today I've got plenty of questions for you, SVG fellows... I wrote this simple

RE: [svg-developers] height and width in svg element

2010-08-12 Thread Smailus, Thomas O
Technology Tel: 425/373-2850 Mobile: 347/SMAILUS From: svg-developers@yahoogroups.com [mailto:svg-develop...@yahoogroups.com] On Behalf Of Jacob Beard Sent: Thursday, August 12, 2010 09:22 To: svg-developers@yahoogroups.com Subject: Re: [svg-developers] height and width in svg element Hi David

Re: [svg-developers] height and width in svg element

2010-08-12 Thread Jacob Beard
Hi David, On 10-08-12 02:45 PM, David Bellot wrote: So apparently there are no solution to what I want to do. It means I will have to manually copy the widths and heights into each svg element in my file. For the context, each svg element contains the representation of a card, and all

Re: [svg-developers] height and width in svg element

2010-08-12 Thread David Bellot
From look at your application, it's not clear to me why you need to define all positions in terms of a percentage. Because I want to be able to change the size of my cards without loosing the relative positions of the elements. Several size of cards exist (bridge, poker, etc...) and I don't

Re: [svg-developers] height and width in svg element

2010-08-12 Thread Jacob Beard
Hi David, On 10-08-12 05:39 PM, David Bellot wrote: From look at your application, it's not clear to me why you need to define all positions in terms of a percentage. Because I want to be able to change the size of my cards without loosing the relative positions of the elements.