Box Model & Color Values
Week 4This is a Firefox Developer Tools tutorial. While Chrome, Safari, and other browsers have developer tools, Firefox Developer Edition has the best tools for learning web development!
📥 Download Firefox Developer Edition: www.firefox.com/en-US/firefox/developer/
Firefox Developer Edition is specifically designed for web developers and includes enhanced developer tools, experimental features, and better CSS debugging capabilities.
Complete: 11 / 11 tasks
💾 Your answers are auto-saved as you type!
💡 Tip: Keep this file open in Firefox Developer Edition and refer back to it as you work through each exercise. Fill in the answer boxes as you go!
Every HTML element is a box made up of four parts:
Your Task: Inspect the box below and find its border properties.
.box-model-demo classborder propertyborder: 5px solid navy; in the .box-model-demo class. This is shorthand for width, style, and color all in one line!
Your Task: Compare these two boxes to see how padding affects spacing.
padding-demo)padding property in the Styles panelpadding-demo-large)Your Task: See how margin creates space BETWEEN elements.
small-margin)margin valuelarge-margin)Your Task: Find the visual box model diagram in Developer Tools.
red, blue, tomato#4a90e2 (common in design)rgb(46, 204, 113)hsl(280, 70%, 60%)Your Task: Inspect this box to see how named colors work.
.named-color class in the Styles panelbackground-color propertytomato, cornflowerblue, salmon, etc.
Your Task: Learn how hex color codes work.
hex-color)background-color valueYour Task: Understand RGB color notation.
rgb-color)background-color using rgb()rgb(0, 0, 0) is black, rgb(255, 255, 255) is white. The higher the number, the more of that color!
Your Task: Learn about HSL (Hue, Saturation, Lightness).
hsl-color)hsl() color valueThis exercise works best in Chrome/Edge. Firefox DevTools don't have the color format cycling feature.
What to do:
Your Task (in Chrome/Edge): See how the same color can be written different ways.
background-color propertyYour Task: Use Chrome Developer Tools to change this box's appearance.
challenge-box)Firefox Developer Tools Practice - Week 4
11 / 11 Tasks Completed ✓
📸 For Submission: Take a screenshot of this completion certificate and submit it for your grade!
Date Completed: Wednesday, October 22, 2025
Course: DESN368 Web Design 1 - Week 4