13 lines
324 B
CSS
13 lines
324 B
CSS
|
body { font-family: arial, helvetica, sans-serif; }
|
||
|
|
||
|
/* SELECTOR PADRE */
|
||
|
/*div p { background: #FF0; }*/
|
||
|
|
||
|
/* SELECTOR HIJO */
|
||
|
/*div > p { background: #FF0; }*/
|
||
|
|
||
|
/* SELECTOR ADYACENTE GENERAL */
|
||
|
/*div ~ p { background: #FF0; }*/
|
||
|
|
||
|
/* SELECTOR ADYACENTE INMEDIATO */
|
||
|
div + p { background: #FF0; }
|