Grow your CSS skills. Land your dream job.

Is there a way to make css conditional?

  • # November 21, 2012 at 9:49 pm

    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;}.

    # November 21, 2012 at 11:48 pm

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".