tutorial 5: applying CSS to organizational tags

watch it on YouTube

New Attributes Covered

height: width:
attribute that can be used with block tags to give a unit a specific height or width. Can be given in pixels, em, or a percentage.
background-color:
attribute that applies a background color to the tag; can be used with block or inline tags.
text-align:
attribute that applies to block tags to center the text within the tag.
border-radius:
attribute that applied to block tags that have a visible border. the border radius creates a rounded corner on the border. a higher value will create a more pronounced rounding effect.
border-top-left-radius:
example of attribute that applies the border-radius to just 1 corner. Also available in top-right, bottom-left, and bottom-right.
border-bottom:
example of attribute that applies border formatting just to the bottom border. Can also be used with border-top, border-left, border-right.
margin-left: margin-right:
sets the margin on the left or right of a block tag. the width of the block needs to be less that 100% for these attributes to make a difference.