1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Custom cell class for CSS

Discussion in 'Community' started by jh, Mar 16, 2019.

  1. jh

    jh Member

    Level: Community
    Hi

    Ive been trying the 'use as row class' to colour row values via CSS based on the element value. Its working great, fantastic to use.

    However Ive been trying to work out how to apply this to only the cell that has that value (not the whole row). Ive seen the 'cell class' box under the list view settings and added a class there (Ive called it activx).

    I have tried various methods of adding this cell class to the row css but I cant get it to work.

    Could someone kindly explain what is the correct way to get it to only colour the cell?

    The CSS I am currently using which changes the row colour is eg:

    #listform_117_com_fabrik_117 .Edited {
    background: green;
    }

    Many thanks.
     
  2. startpoint

    startpoint Active Member

    Level: Community
    Every cell in table row have own unique css class based on element name.
    Select cell class in your css code.
     
  3. jh

    jh Member

    Level: Community
    Hi

    Thank you, got it working.

    Many thanks.
     

Share This Page