[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

[svg-developers] dimensions in CSS

2010-08-12 Thread David Bellot
Hi, is it possible to define sizes of an object in a CSS style and then apply this style to many objects so that they all have the same size ? Thanks, David -- David Bellot, PhD david.bel...@gmail.com http://david.bellot.free.fr [Non-text portions of this message have been removed]

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
So it appears the answer is NO, because the groups didn't really have a strong feel about it in the early stages of developing the standards. Am I reading that right? Its even more confusing in light of the fact that in English, property and attribute are somewhat synonymous terms: In

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.