Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS This Type Of CSS Naming Style is Strange

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #45583
    CodeGraphics
    Participant

    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.

    #138981
    CrocoDillon
    Participant

    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.

    #138984
    CodeGraphics
    Participant

    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?

    #138988
    Kitty Giraudel
    Participant

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

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

    #138998
    CrocoDillon
    Participant

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

    #139004
    Paulie_D
    Member

    >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)
  • The forum ‘CSS’ is closed to new topics and replies.