Lesson 9

Working with Margins, Padding, Alignment, and Floating

What You’ll Learn in This Lesson:

  • 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 lesson you’ll learn the nitty-gritty ...

Get Sams Teach Yourself HTML, CSS, and JavaScript All in One, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.