CSS box model: Difference between revisions

Content deleted Content added
code formatting
Line 12:
 
For example, the following CSS code
<source lang="css">
<code>
:.myClass {
: width: 200px;
: height: 100px;
: padding: 10px;
: border: solid 10px black;
: margin: 10px;
:}
</codesource>
will specify the box dimensions of each block belonging to 'myClass'. Moreover, each such box will have total height 160px and width 260px, which is the sum of the content, padding, border and margin.