Charles Dort wrote:
#sweden dd.img img {float: left;}
I didn't see the point of adding the class to the html code because it seemed to me that it could be identified without it, so I experimented by leaving out the class and addressing it in the CSS with just
#sweden dd img {float: left;}
and it seemed to work fine. But I'm the beginner, and the expert used the class. I'm sure there was a reason; I just don't know what it is. Can anyone tell me why it's necessary or a good idea to add that class to identify the image?
I don't see the point either - in that case. (I haven't read the book.) However, if you have an image in one 'dd' you want to 'float', and an image in another 'dd' that you _don't_ want to add that style to, then the extra class on 'dd' can be used to separate them. You may then of course just as well add a class to the image you want to 'float' itself, in such a mixed case. Plenty of options available, and every site may need its own strategy for use of these options. Test them out, and try to keep it simple and understandable as you go along, as it will be much easier to maintain later on. (I should have followed that rule myself :-) ) regards Georg -- http://www.gunlaug.no ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/