Tuesday, July 28, 2009

Web Design - wk 2

refers to the thickness of text elements
normal text
bold text
bolder text
lighter text
100
all values we can specify using font-weight property

h1 {font-size:2em; font-weight:normal}
h2 {font-size:2em; font-weight:bold}
h3 {font-size:2em; font-weight:bolder}
h4 {font-size:2em; font-weight:lighter}
h5 {font-size:2em; font-weight:100}
100 will render type quite light - 450 would be slightly darker - 900 would be boldest
tip: not all user agents support this property completely - not all font weights will render the same or consistantly across all browsers

No comments:

Post a Comment