In this chapter you have learned about some of the peculiarities of the box model. You have seen how vertical adjacent margins collapse to form a single margin, and how IE 5.x on Windows interprets the width property differently from other browsers. You now understand the difference between absolute and relative positioning and how useful absolute positioning in a relative container can be. Lastly, you have seen how floats behave in various circumstances and learned that clearing works by increasing the cleared element’s top margin.
Now that you are armed with this knowledge, let’s start putting it to good use. In the next section of this book, you will be introduced to a number of core CSS concepts and you’ll see how they can be used to create a variety of useful and practical techniques. So open your favorite text editor, and let’s get coding.
Unable to display preview. Download preview PDF.