O'Reilly logo

Sams Teach Yourself HTML and CSS in 24 Hours by Michael Morrison, Julie C. Meloni

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

Hour 14. Working with Margins, Padding, Alignment, and Floating

Now that you’ve learned some of the basics of creating web content, you’ll spend this hour learning the nitty-gritty of using CSS to enhance that content. Throughout the previous hours, you have learned how to use basic CSS for display purposes (such as font sizes and colors). In the hours that follow, you’ll dive in to using CSS to control aspects of your entire web “page” and not just individual pieces of text or graphics.

Before tackling page layout, however, it is important to understand four particular CSS ...

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