Web Design CSS Text
Sa vorbim putin despre propritatiile CSS ce pot fi aplicate textului in general (paragraf, headings, linkuri).
Cele mai uzuale si importante sunt:
1. Culoare text (text color)
Culoarea textului poate fi specificata prin trei metode:
- nume – color:blue
- rgb – rgb(255,0,0)
- hex – color:#ff3333
Culoarea implicita (default) va fi specificata in body.
body {color:red;}
h1 {color:#00ff00;}
p {color:rgb(255,0,0);}
2. Aliniere (Text alignment)
Variante disponibile: left, center, right, justify. Exemple:
h2 {text-align:center;}
p.dreapta {text-align:right;}
p.stanga {text-align:left;}
p {text-align:justify;}
3. Decorare (text-decoration)
Variantele acceptate sunt: none, underline, overline, line-through, blink
De exemplu ca default …citeste tot articolul
Comentarii (0)
Web Design – CSS background
Acum sa luam cateva proprietati CSS pe rand, dupa care vom trece la lucruri mai avansate, si tot felul de artificii interesante.
1. CSS background:
Pentru a defini background-ul sunt acceptate:
- background-color (exemplu: background-color:#b0c4de;)
- background-image (exemplu: background-image:url(‘paper.gif’);)
- background-repeat (exemplu: background-repeat:repeat-x;) (repeat-x; repeat-y; no-repeat;)
- background-attachment (exemplu: background-attachment:fixed;)
- background-position (exemplu: background-position:top left;)
Toate proprietatile Background: …vezi toate proprietatile css pentru backgound
Comentarii (4)
