HTML CSS examples for SVG:Line
make an SVG "line" with a border around it
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .stroke {<!--from w w w .jav a 2 s .c o m--> stroke: red; stroke-width: 10px; } .line { stroke: black; stroke-width: 1px; } </style> </head> <body> <svg width="200" height="200" viewbox="0 0 100 100"> <defs> <line id="line1" x1="25" x2="75" y1="25" y2="75" /> </defs> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#line1" class="stroke"></use> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#line1" class="line"></use> </svg> </body> </html>