Is it possible to do a popup with just HTML and CSS?

Hi, is there any way to do a popup with just HTML and CSS and to have it appear on every 20th visit in total, to any pages on a website please?

Yes.

No.
If there are any conditions to if or when it is displayed, it will require scripting of some kind.

1 Like

Thanks Sam, if it had PHP, would that be okay, with no js at all?

I would think it is possible using cookies to count visits.

For a html/css only popup, you would probably need the target pseudo class to show/hide a box with fixed/absolute position. That means it wouldn’t work in IE8, but that’s a very small minority now.

Thanks Sam, I’ll bear that in mind.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.