RE: img.left, img.right

Designer wrote:
    > 1) It's clear what it's for (semantic?)

I do the same thing for embedded images and I would think that this is okay 
and finding another way would be a challenge. But I'll take a stab at it 
since I've been enlightened on this a bit.

    img.posA {} for left (or whatever if it were to be changed down the 
road)
    img.posB {} for right (same)
    img.posC {} for centered (same)

Like so:

    a img, img.posA, img.posB, img.posC {
      background-color : #fff;
      border : 0;
    }

    img.posA {
      float : left;
      margin : 0 15px 5px 0;
    }

    img.posB {
      float : right;
      margin : 0 0 5px 15px;
    }

    img.posC {
      margin : 5px auto;
}

The class refers to a position (pos) or primary class function, this is 
unlikely to change. The only change would be the position's definition. That 
would be written in an open-ended fashion using A, B, C.

That said, for my clients, using .left, .right, .center will be more 
intuitive.

Respectfully,
Mike Cherim
http://green-beast.com/



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to