Madhu
07-19-2005, 05:05 AM
I wrote simple rect.svg :
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet href="mystyle.css" type="text/css"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="100%" height="100%">
<rect x="100" y="100" width="300" height="200"/>
</svg>
and the css file is mystyle.css :
rect {
fill: red;
stroke: blue;
stroke-width: 3;
}
The above example works fine.........
but if i want to move the rectangle to right most corner
what are the attributes need to be given in CSS file?
i included top:20%;
left:50%; in CSS........
but its not working.........
Please guide me......
Thanks.....
Madhu
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet href="mystyle.css" type="text/css"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="100%" height="100%">
<rect x="100" y="100" width="300" height="200"/>
</svg>
and the css file is mystyle.css :
rect {
fill: red;
stroke: blue;
stroke-width: 3;
}
The above example works fine.........
but if i want to move the rectangle to right most corner
what are the attributes need to be given in CSS file?
i included top:20%;
left:50%; in CSS........
but its not working.........
Please guide me......
Thanks.....
Madhu