O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Q&A

Q1:This chapter has suggested creating a class for every style declaration. This would seem to create a long style sheet to accommodate every possible declaration. Are other methods possible?
A1: Certainly. The author has made this suggestion based on his experience developing SVG with a team of developers. Other methods are possible and equally beneficial (if not more, in some cases), and you are encouraged to code your style sheets in a fashion that best suits your team and work environment. In some cases, grouping several declarations into one class can be quite helpful. For instance, if you were to create a class labeled “errormsg” to style text that appeared whenever a user did something wrong, you could place several declarations inside ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required