/  7
 
 
Styling links
 Link styles MUST be specified in this order!
a:link – normal link a:visited – has been clicked througha:hover – when the mouse floats over ita:active – when you click but don’t let gothe mouse
 
 
Unit sizes
Relative:
 – em: the 'font-size' of the specific font (1 is default) –  px: pixels, relative to the viewing device
Absolute:
 –in, cm, mm: inches, centimeters, millimeters – cm: centimeters – mm: millimeters –  pt: points -- 1/72th of an inch
 
 
Span vs. div
Styles can be applied to any HTML tagBut there are 2 tags used just for styles:Div is a
block 
tag that separates logicalsections of a page.
 A div cannot go inside a paragraph, becausea div is a block or container object.
Span is an
inline
tag that only appliesformatting.
Spans cannot include layout formatting like margins or  floats.

Share & Embed

More from this user

Add a Comment

Characters: ...