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 into the svg element, then it works.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>

<svg version="1.1" xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="
http://www.w3.org/1999/xlink";>

*    <style type="text/css">
        <![CDATA[
            svg.mybox {
                height: 5cm;
                width: 3cm;
                }
        ]]>
    </style>*

    <defs>
        <rect id="yellowbox" height="100%" width="100%" fill="yellow"/>
    </defs>

*    <svg class="mybox">
        <use xlink:href="#yellowbox"/>
    </svg>*
</svg>

Any help on this would be greatly appreciated.
David

-- 
David Bellot, PhD
david.bel...@gmail.com
http://david.bellot.free.fr


[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to