Overlay behind modal window in one line of CSS
Written by Patrik Engborg
Related protips
3 Responses

Does this work if your modal has rounded corners?
over 1 year ago
·
Mm, not sure. But after googling it, border-radius and outline doesn't seem to play very well together. So maybe you have to stick to a square box.
over 1 year ago
·

I'm not able to test right now, but a box-shadow with a large spread shoild accomplish the same trick without border-radius issues. YMMV per browser, of course.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Related Tags
#css
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#