Chapter 10. Don't Repeat Yourself – Let's Create a Simple CSS Framework

How many times have you done some work, only to repeat it in the next project? How many times have you thought about elements that are repeatable? All the time when you are coding, you should think how many operations you can omit the next time you're working on the same or another project. This means that you need to use the following:

  • Automatization
  • Code templates or frameworks

This chapter is about building reusable code and how to finally use it as a foundation for projects. In this chapter, we will cover the following topics:

  • Making a plan for a small and simple CSS framework
  • Creating your own grid system
  • Creating reusable elements

Remember that this code can and should be extended. ...

Get Professional CSS3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.