Forums

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

Home Forums CSS [Solved] Custom attribute / property in CSS

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #163374
    Paulie_D
    Member

    No…I’m not talking about ‘data-attributes’ but I came across this in Stack Overflow.

        <li anything="london">First</li>
    

    Why does this work? : http://codepen.io/Paulie-D/pen/JfLog

    It’s not referencing the ‘london’ but it does seem to react to the ‘anything’!

    Am I missing something?

    #163402
    Paulie_D
    Member

    No I get that it’s acting like (or is) an attribute…I just didn’t know we could make up our own.

    Other than data-xx etc.

    #163424
    Paulie_D
    Member

    Wow…thanks for that.

    I thought I was going crazy for a while.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.