<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg" >
  <head>
    <title>Styling SVG with CSS</title>
    <style>
      circle:hover {fill-opacity:0.9; stroke-width:2mm;}
    </style>

  </head>

  <body>
    <h1>Styling SVG with CSS</h1>
  <ul>
    <li>SVG complies with W3C cascading style sheets</li>
    <li>Style can be specified on tags (style-attribute) or using selectors</li>
    <li>Style can be made dynamic using pseudo-classes such as <strong>:hover</strong></li>
  </ul>
  <pre style="background-color:#DDDDFF;">
  &lt;svg&gt;
    <strong>
    &lt;style&gt;
      circle:hover {fill-opacity:0.9; stroke-width:2mm;}
    &lt;/style&gt;
    </strong>
    &lt;g style="fill-opacity:0.7; stroke:black; stroke-width:0.1cm;"&gt;
      &lt;circle cx="6cm" cy="2cm" r="100" fill="red" transform="translate(0,50)" /&gt;
      &lt;circle cx="6cm" cy="2cm" r="100" fill="blue" transform="translate(70,150)" /&gt;
      &lt;circle cx="6cm" cy="2cm" r="100" fill="green" transform="translate(-70,150)"/&gt;
    &lt;/g&gt;
  &lt;/svg&gt; 
  </pre>

  
  <svg:svg width="12cm" height="12cm">
    <svg:g style="fill-opacity:0.7; stroke:black; stroke-width:0.1cm;">
      <svg:circle cx="6cm" cy="2cm" r="100" style="fill:red;" transform="translate(0,50)" />
      <svg:circle cx="6cm" cy="2cm" r="100" style="fill:blue;" transform="translate(70,150)" />
      <svg:circle cx="6cm" cy="2cm" r="100" style="fill:green;" transform="translate(-70,150)"/>
      <svg:rect x="0" y="0" width="12cm" height="12cm" style="fill:none;stroke:black; stroke-width:1;"/>
    </svg:g>
  </svg:svg> 
</body>
</html>