O'Reilly logo

HTML and CSS in 24 Hours, Sams Teach Yourself (Updated for HTML5 and CSS3), Ninth Edition by 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 13. Working with Margins, Padding, Alignment, and Floating

What You’ll Learn in This Hour:

Image How to add margins around elements

Image How to add padding within elements

Image How to keep everything aligned

Image How to use the float property

Now that you’ve learned some of the basics of creating web content, in this hour, you learn the nitty-gritty of using 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