padding
.src
, alt
, height
,
width
Here's the box-model question from last year's quiz:
Consider this XHTML and CSS:
<p id="motto">Never let them see you sweat.</p> p#motto { margin: 10px; border-width: 1px 2px; padding: 3px 4px 5px 6px; width: 20px; background-color: #FF00AA; color: rgb(10, 128, 255); /* sets the text color */ }
- What is the total width of the paragraph element in the browser? (Show your work for partial credit.)
- In the diagram below, label the border area, the content area, the margin area, and the padding area.
- In the diagram below, indicate the length of each of the thirteen dotted lines (none drawn to scale).
© 2007 Calvin College and Jeremy D.
Frens.
This work is licensed under a Creative
Commons Attribution-Noncommercial-Share Alike 3.0 United States
License.