• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Using CSS with SVG > The SVG style Attribute

The SVG style Attribute

The SVG style attribute allows us to group several CSS styling properties within a single attribute.

The syntax when using the style attribute differs from that which we saw in the previous section where we used individual presentation attributes. There is now only one attribute, the style attribute, and the value of that attribute consists of CSS declarations separated by a semicolon and optional whitespace. Thus, we have code like the following:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint