Thu, 2010-08-26 02:05
I bought bullet proof web design 2nd edition and there is this code that I need some explanation:
what is the difference between:
#sweden dl dd.img and #sweden dd.img img
aren't they acting on the same image??? the difference is only the specificity? why?
the html code is the following:
<div id="sweden"> <dl> <dt>Stockholm</dt> <dd class="img"><img src="IMAGES/bolivia1.jpg" width="80" height="52" alt="bolivia 1" /></dd> <dd>This was taken in Gamla SThis was take</dd> </dl> </div>
Thanks
Thu, 2010-08-26 02:15
#1
Actually the first one is
Actually the first one is targeting the dd with the class of img which contains the image.
The second is targeting the image within.
Fri, 2010-08-27 23:30
#2
targeting
wouldn't be the same image? I am confused 
Sat, 2010-08-28 01:04
#3
google@ildw.com
wouldn't be the same image? I am confused 
No. As Tony mentioned the first targets a <dd class="img"> and the second targets an <img>.


