Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

OT but anyone know how the author made that floating subscribe button happen? I inspected the code but I'm not a web dev and can't entirely tell how that was done.

AFAIK this is not a native Substack thing, and also AFAIK Substack doesn't allow CSS modification or injection of code.



Check out the .subscribe-dialog-pill CSS style. It's a combination of the z-index: 1 and position: fixed (I believe).

I know nothing about Substack's CSS/JS rules. But I do believe that the behavior is controlled in the CSS style I mentioned.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: