Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSS Properties on Parade PropertyValid valuesExample font-familylist of fonts (separate with commas, end with generic font: serif, sans-serif, fantasy,

Similar presentations


Presentation on theme: "CSS Properties on Parade PropertyValid valuesExample font-familylist of fonts (separate with commas, end with generic font: serif, sans-serif, fantasy,"— Presentation transcript:

1 CSS Properties on Parade PropertyValid valuesExample font-familylist of fonts (separate with commas, end with generic font: serif, sans-serif, fantasy, cursive, monospace) font-family: Arial, “Times New Roman”, sans-serif; font-styleitalic, normal, obliquefont-style: italic; font-weightnormal, bold, lighter, bolder, or 100, 200, …, 900 (900 is darkest, 700 is bold) font-weight: lighter; font-weight: 300; font-sizepercentage, large, medium (default), small (and lots more) font-size: 250%; font-size: large; colorcolor name, rgb #s, or hex code color: red; color: rgb(255,0,0); color: #FF0000; background- color same as abovebackground-color: green; 8

2 CSS Properties on Parade PropertyValid valuesExample text-alignleft, center, right, justifytext-align: left; text- decoration underline, overline, line- through, none, or blink (please, no) text-decoration: none; heightnumber expressed in pixels (px), width of letter M in font (em), or % of parent block height: 15px; height: 4em; height: 50%; 9

3 Primary Colors #0000FF rgb(0,0,255) #FF0000 rgb(255,0,0) #FF00FF rgb(255,0,255) #00FF00 rgb(0,255,0) #FFFF00 rgb(255,255,0) #00FFFF rgb(0,255,255) see web page for links to color codes 10

4 Style Inheritance 11


Download ppt "CSS Properties on Parade PropertyValid valuesExample font-familylist of fonts (separate with commas, end with generic font: serif, sans-serif, fantasy,"

Similar presentations


Ads by Google