1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what is "data-author" ?

Discussion in 'XenForo Development Discussions' started by DroidHost, Mar 21, 2012.

  1. DroidHost

    DroidHost Well-Known Member

    what is "data-author" ? in the template

    <li id="post-84" class="message staff" data-author="Ali">

    is it possible to use it inside css ? and how ?
  2. bambua

    bambua Well-Known Member

    It's a custom attribute:


    It really depends on what's reading it as to what you can do with it.

    Here's some info on using CSS with it:


    It's generally not recommended, the best use I've seen for it is for filtering on the website if you don't want to see someones post in XenForo ;)
  3. DroidHost

    DroidHost Well-Known Member

    Fine , I fiugre it out

Share This Page