Tuesday, August 18, 2009

descendant

more advanced selecters.
elements can hold other elements, all these elements are connected together, called parent child elements.
mozzila .com
eg. if you type in ol a... any a element within the ol will be effected.. anything out of the ol element, even if it is an a element, will not be effected as its not a descendant of the ol.
div#extra ol li img {
}
if it's a child not descendant, no space
so anything within the div id extra ol li img will do as within the element

No comments:

Post a Comment