From 88a66e26f58292e33d67b4cd9257bdda37a6869f Mon Sep 17 00:00:00 2001 From: Kyle Paulsen Date: Wed, 4 Feb 2015 17:36:49 -0800 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 62d79b8..7b3f22d 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,16 @@ The customShow and customHide properties on the main nanoModal var can be used t } ``` +### Making the modal stick to your scroll position + +``` +.nanoModal.nanoModalOverride { + position: fixed; +} +``` + +You should test on your target mobile browsers though, as position fixed can do some weird things on mobile. I might add a built in feature for this if people want it (file an issue). + ### Note: You probably wont need to deal with the stuff below. ---