Chapter 2. Mastering of Fundamentals

This chapter will master the box model, floating troubleshooting positioning, and display types. After this chapter, you will be more aware of the foundations of HTML and CSS.

In this chapter, we will cover the following topics:

  • Gaining knowledge about the traditional box model
  • Basics of floating elements
  • Foundations of positioning elements on a web page
  • Gaining knowledge about display types

Traditional box model

An understanding of the box model is the foundation of CSS theories. You have to know the impact of width, height, margin, and borders on the size of the box and how you can manage it to match the elements on a website. The main questions for coders and frontend developers in interviews are based on box model ...

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.