DSGN53871
WEB DESIGN 1

Cascading Stylesheets

Sizing up fonts using stylesheets.

Absolute sizing:
  • mm - millimeters
  • cm - centimeters
  • in - inches
  • pt - points
  • pc - picas

    Relative Sizing (according to the font):

  • em - element's font height, pixels)
  • ex - element's x-height
  • px - pixel

    Font Size (defined by):

  • points (pt)
  • pixels (px)
  • inches (in)
  • centimeters (cm)

    The advantage of using pixel height is that it is relatively
    uniform across PC and MAC platforms.

    <style>
    td, b {font-family: sansserif; font-size: 13px; color: black;}
    .s {font-size: 11px;}
    .ss {font-size: 9px;}
    .h {font-size: 16px; color: white}
    .r {font-size: 11px; color: cc0000}
    </style>
    	


    << Back


    Interactive Multimedia ~ School of Applied Engineering and Computing Sciences ~ Sheridan