Assessment
Activity
Enlightenment
How do you add space inside an element around the content of the element?
margin
spacing
border
padding
How do you add space around an element?
margin
spacing
border
padding
Which line of code would set the top and bottom margin of a targetted element to 5px, the left margin to 4px, and the right margin to 20px?
margin: 5px 5px 4px 20px;
margin: 4px 20px 5px 5px;
margin: 4px 5px 20px 20px;
margin: 5px 20px 5px 4px;
Which of the following is not a component of the box model?
content
margin
padding
margin
body

Boxes inside of Boxes

Style the HTML elements to achieve a desired result.

Open the project file. You should see a large red box with the text "Dr. J" in the top left corner.

Save the html file to your computer and open it in the HTML editor of your choice.

Review the HTML and CSS code to understand how the page was constructed. Note that each DIV element is a box, but only the DIV with an id of "a" has a background-color applied. Also, note that a CSS style is defined to set the display of all DIV elements to inline-block. This will make it easier to position the elements as needed.

Without changing any of the HTML code, add additional CSS to achieve the following result:

Try to match the styles as closely as possible. Of course, you are welcome to change the text to your own AKA (i.e. "also known as" name).

Try completing the acitivty on your own first.

If you get stuck,

nothing extra for this lesson :(