SVG – Learning by Coding
1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3: "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
4: <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
5: ]>
6:
7: <!-- SVG - Learning by Coding - http://www.datenverdrahten.de/svglbc/ -->
8: <!-- Author: Dr. Thomas Meinike 02/03 - thomas@handmadecode.de -->
9:
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11:
12: <title>SVG - Learning by Coding</title>
13: <desc>SVG-Spezifikation in Beispielen</desc>
14:
15: <defs>
16:
17: <style type="text/css">
18: <![CDATA[
19:
20: text
21: {
22: font-size: 18px;
23: fill: #333;
24: }
25:
26: tspan
27: {
28: font-size: 18px;
29: fill: #00C;
30: }
31:
32: ]]>
33: </style>
34:
35: </defs>
36:
37: <text x="20" y="30" style="fill: #000; font-size: 24px">
38: Eigenschaft text-anchor
39: </text>
40:
41: <line x1="90" y1="90" x2="90" y2="180"/>
42:
43: <text x="60" y="80">
44: text-anchor:
45: <tspan x="90" dy="30" style="text-anchor: start">start (Standard)</tspan>
46: <tspan x="90" dy="30" style="text-anchor: middle">middle</tspan>
47: <tspan x="90" dy="30" style="text-anchor: end">end</tspan>
48: </text>
49:
50: </svg>
[zum Anfang]