Styling SVG Elements in CSS
Here’s a simple example of how to style SVG elements using CSS. First our SVG document, which is a stand-alone file: <?xml versions’ll” encoding=”utf-8″?> <?xml-stylesheet href=”styles.css” type=”text/css” ?> <svg version=”1.1″ xmlns=”http://www.w3.org/2000/svg” xmlns:xlink= “http://www.w3.org/1999/xlink” x=”0px” y=”0px” viewBox=”0 0 497 184″ enable-background=”new 0 0 497 184″ xml:space=”preserve”> <polygon id=”star” points=”77,23.7 98.2,66.6 145.5,66.5 111.2, 106.9,119.3,154 77,131.8 34.7,154 42.8,106.9 [ [ ...]