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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.