Charles D: 
>> #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
>>

Christian M:
>It's just that you never know when you might have a dd with an image
that you don't want to float. So it's good to give all particular dd's 
>with imgs you want to float their own class.

It has to do with alternating the direction of the floated image and
overriding the margins on the dd which are set for the dd.alt class
later on in the stylesheet. Charles, read on...pp 100-101 explains. 

-Nigel


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christian
Montoya
Sent: Tuesday, October 18, 2005 9:19 AM
To: Charles Dort
Cc: css-d@lists.css-discuss.org
Subject: Re: [css-d] Why add an .img class?


______________________________________________________________________
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/

Reply via email to