CSS Logic

Out of context: Reply #5

  • Started
  • Last post
  • 14 Responses
  • Stugoo0

    What Milan said.

    I worked somewhere where they used this approach and also used it for a while myself. It was so that every site was uniform and cross the dev team anyone could pick it up and use it. Ultimatley it lead to class soup which in turn spurred frustration.

    div class=" padding40 marginTop10 content-block float-left" etc.
    it defeats the purpose of having clean markup.
    You are in turn moving your editting from the CSS to the HTML. Those classes arent semantic. Next thing you will be finding declarations .blue-link{ color:#ff000;}

    Send them to the CSS Zen Garden archive for a lesson in how to properly use CSS

View thread