Grow your CSS skills. Land your dream job.

This Type Of CSS Naming Style is Strange

  • # June 17, 2013 at 3:02 am

    I came across this css naming style.

    #nav li:hover {
    dborder: 1px solid #777777;
    dpadding: 4px 9px 4px 9px;
    dbackground: #F4F4F4;
    dborder-radius: 5px 5px 0px 0px;
    }

    I dont understand: ‘d’ before each property.

    # June 17, 2013 at 3:44 am

    Maybe ‘d’ from ‘disable’ or something? I often add an extra character to disable a property for testing, it’s much quicker than commenting the whole line out.

    # June 17, 2013 at 3:57 am

    I think so. But it’s a horrible idea. So if one wants to enable them, he will have to start delete the ‘d’ into 100 times?

    # June 17, 2013 at 4:54 am

    > I think so. But it’s a horrible idea.

    Yes it is. Plus, unused code should never reach production.

    # June 17, 2013 at 6:19 am

    That’s another thing I like about Sass, silent comments `//` types much faster than `/* */` and won’t be included in production CSS :)

    # June 17, 2013 at 6:58 am

    >I think so. But it’s a horrible idea.

    Yes but he may have a script that will do a search and replace for him. Just a thought.

    Whatever, I don’t like it.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".