Forums

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

Home Forums CSS Is there a way to make css conditional?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40920
    rughooker
    Member

    Is there a way after testing to see if a member is logged in to serve a css file that will allow printing. On the flip side, if a member is not logged in they get body {display:none;}.

    #115118
    chrisburton
    Participant

    If it were me, I would use PHP to write a conditional. Something like: if the user is logged in, then you get `` else ``. Then you can apply any CSS code you wish.

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