Click here to Skip to main content
15,921,169 members
Articles / Web Development / HTML

CSS Basics: The Box Model, Margin, and Padding

Rate me:
Please Sign up or sign in to vote.
4.81/5 (10 votes)
18 Jul 2011CPOL6 min read 66.2K   29  
The CSS box model defines the border and spacing around an HTML element. We'll take a closer look at how it works.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Writer ContentLab
United States United States
Terrence Dorsey is a technical writer, editor and content strategist specializing in technology and software development. He is currently Senior Technical Editor at ContentLab. He previously was Senior Technical Writer at ESPN, Director of Content Development at CodeProject and Senior Editor of MSDN Magazine and TechNet Magazine. His writing has appeared in Visual Studio Magazine, MSDN Magazine, Application Development Trends and Redmond Magazine.

Comments and Discussions