Agrupamento de Escolas da Batalha Miguela Fernandes Janeiro 2012 CSS CSS Formatação de tipo de letra (fontes)
Considerações iniciais Propriedades básicas para os tipos de letra (fonte): Color : cor da fonte; font-family : tipo de fonte; font-size : tamanho de fonte; font-style : estilo de fonte; font-variant : fontes maiúsculas pequenas; font-weight : tornar mais escura a fonte (negrito); Font : abreviadar todas as propriedades. MF. 2
COLOR Em código hexadecimal: #FFFFFF Em código rgb : rgb (255,235,0) Com o nome da cor : yellow, red, blue, entre outras . Exemplo: h1 { color : #FFFFFF;} h2 { color : rgb (124,234,255);} p { color : #000000;} MF. 3
FONT-FAMILY nome da família das fontes : é usar o nome da fonte. Por exemplo: “ verdana ”, “ helvetica ”, “ arial ”,….. Exemplo: <style type="text/ css "> h2 {font-family: arial , helvetica , serif;} p {font-family: sans-serif;} </style> MF. 4
FONT-SIZE (1) xx-small x-small small medium large x-large xx-large smaller larger length: medida reconhecida pelas CSS ( px , pt, em , cm, ...) % MF. 5
Sintaxe FONT font: [style] [variant] [weight] [ size ] [/line-height] [ family ] Exemplo: <style type="text/ css "> p { font: italic small-caps bold 14px "Comic Sans MS", sans-serif; } </style> MF. 10
Webgrafia e Bibliografia http://www.ufpa.br/dicas/htm/htm-fra.htm http://www.sevenseek.com/tutorials/learning-css-important-css-concepts/ http://webstyleguide.com/wsg3/5-site-structure/3-site-file-structure.html http://www.tizag.com/cssT/inline.php Teagu , J. C. (2004). DHTML and CSS for the World Wide Web (2ª Ed.). USA:Peachpit Press. MF. 11