Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* o CSS trabalha / acessa os elementos do HTML usando SELETORES */
- /* 1 - diretamente pela tag */
- body {
- background: orange;
- }
- /* 2 - acessar o elemento pelo ID (usamos o # no inicio do seu id) */
- #destaque {
- font-family: 'Courier';
- }
- /* quando queremos aplicar uma MESMA regra a diversos elementos (sem precisar criar um ID para cada um) */
- /* usamos o atributo class */
- .grandao {
- font-size: 26px;
- font-family: 'Comic Sans MS';
- color: darkred;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement