Hi all, i started almost one week ago studying Html/Css through W3schools site, so i'm pretty noobish about it; and i'm here looking for some help; in this chapter http://www.w3schools...age_gallery.asp there's an Image Gallery example, and i have a couple of questions:
div.img img { display:inline; margin:3px; border:1px solid #ffffff; }
1) in this part of the code, if i'm not wrong the div.img img is for nesting selectors, here my question: wasn't enough wrting it like .img img ? is the div before it, to specify that all the img elements within an element with class="img" have to be into a div element? so they can be distinguished from other kind of containers, like <span> etc..sorry for the confused question, and perhaps for you the answer was an obvious one, but i'd like to be sure about it, and i have none that can explain me these things.2) Aren't <img> elements already inline elements? why is it used display:inline; ?
div.img a:hover img { border:1px solid #0000ff; }
What's the difference between div.img a:hover img and div.img img:hover ? thanks in advance for any kind of help and advice that you will provide me. ps.Sorry for my grammar errors and the poor english.