This div element will have a total width of 350px:
350px (width)
+ 20px (left + right padding)
+ 10px (left + right border)
+ 40px (left + right margin)
= 420px
The total width of an element should be calculated like this:
Total element width = width + left padding + right padding + left border + right border + left margin + right margin
The total height of an element should be calculated like this:
Total element height = height + top padding + bottom padding + top border + bottom border + top margin + bottom margin
Everything on the Internet is basically a bunch of boxes. Whether we see them or not, they're there. So here we discuss and display the 3 types of CSS using a combination of boxes.
There are 3 types of CSS, so far we've exerienced 2 types. The first was inline when creating the WeAreOne.media footer. The second being internal when it comes to the box model. The third type is external and is an entirely separate file with the extension .css and save in the assets folder for our websites.