SS1 Week 16 CSS Box Model
SS1 Week 16 CSS Box Model
Quarter 2 – Week 16
Subject Area: IT: SS1 - HTML5, CSS3
• The following diagram demonstrates how the width, height, padding, border, and
margin CSS properties determines how much space an element can take on a
web page.
• The CSS border properties allow you to define the border area of an element's
box.
• The border can either be a predefined style like, solid line, dotted line, double
line, etc. or an image.
• The CSS border properties allow you to define the border area of an element's
box.
• The border can either be a predefined style like, solid line, dotted line, double
line, etc. or an image.
The border-style property sets the style of a box's border such as:
• None
• hidden
• solid
• dashed
• dotted
• double
• inset
• outset
• groove
• ridge
Tip: The border width can be specified using any length value, such as px, em, rem,
and so on. In addition to length units, the border width may also be specified using one
of three keywords: thin, medium, and thick. Percentage values are not allowed.
• The margin property is a shorthand property to avoid setting margin of each side
separately
• margin-top, margin-right, margin-bottom and margin-left.
• The auto value for the margin property tells the web browser to automatically
calculate the margin.
• This is commonly used to center an element horizontally within a larger
container.
Performance Task Sheet 16
Title:
CSS Box Model
Performance Objective:
• Putting a box model
Supplies:
LMS, online course site
Equipment:
Computer, internet connection
Steps/ Procedures:
Put a box model inside your paragraph, div , span etc.
Assessment Method: