Curs 8 - Conținut și design în programarea web - Andrei
Curs 8 - Conținut și design în programarea web - Andrei
Curs 8 - Conținut și design în programarea web - Andrei
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Universitatea Politehnica Bucuresti - Facultatea de Automatica si Calculatoare<br />
Selectori<br />
Un selector descendent alege un tag avand un<br />
ancestor corespunzator:<br />
– p code { color: brown }<br />
– selecteaza code daca este folosit in interiorul unui<br />
paragraf<br />
• Un selector copil > alege un tag avand un parinte<br />
corespunzator:<br />
h3 > em { font-weight: bold }<br />
selecteaza un em doar daca parintele imediat este h3<br />
• Un selector adiacent alege un element ce imediat<br />
urmeaza altuia:<br />
b + i { font-size: 8pt }<br />
Exemplu: I'm bold and I'm italic<br />
Rezultatul va arata astfel: I'm bold and I'm italic<br />
07.05.2009 <strong>Curs</strong> Programare Web, anul 4 C5 – <strong>Curs</strong> 8<br />
49