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

Style Sheet Organization

In Hour 6, you learned how to organize your style sheets by grouping together similar styles, thus making it easier to find, add, or edit related classes. It also created a system that was easy to duplicate between documents, allowing anyone editing or reviewing your document to determine a class's name without having to root through the actual style sheet.

Your SVG files will likely contain numerous selectors. If your styles are not organized, it becomes difficult to quickly scan over a list of selector names and discern the style appropriate for a specific use.

To alleviate such issues, you can group style rules according to their function. In Hour 6, the instance was given where you had a style sheet with ten classes ...

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