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:
| Proprietate | Descriere | Valoare | CSS |
|---|---|---|---|
| background | Seteaza toate proprietatile intr-o singura declaratie CSS |
background-color background-image background-repeat background-attachment background-position inherit |
1 |
| background-attachment | Seteaza daca o imagine este fixa, sau se misca odata cu pagina |
scroll fixed inherit |
1 |
| background-color | Seteaza culoarea de background a unui element |
color-rgb color-hex color-name transparent inherit |
1 |
| background-image | Seteaza o imagine de background unui element |
url(URL) none inherit |
1 |
| background-position | Seteaza pozitie de start a unei imagini |
top left top center top right center left center center center right bottom left bottom center bottom right x% y% xpos ypos inherit |
1 |
| background-repeat | Seteaza daca imaginea se va repeta pe fundal |
repeat repeat-x repeat-y no-repeat inherit |
1 |


cititi blog-ul intreg, destul de bine
Comentariu prin online — 23 martie 2010 @ 1:05