What You’ll Learn in This Chapter:
▸ How to add margins around elements
▸ How to add padding within elements
▸ How to keep everything aligned
▸ How to use the
Now that you’ve learned some of the basics of creating web content, in this chapter you’ll learn the nitty-gritty of using CSS to enhance that content. In the chapters that follow, you dive in to using CSS to control aspects of your entire web page, not just individual pieces of text or graphics.
Before you tackle page layout, however, it is important to understand four particular CSS properties individually before putting them all together:
padding properties—For adding space around elements ...