on-internet
← Community

How to make modal box responsive?

Stack Overflow ·

I have implemented this jQuery-based modal box: http://leanmodal.finelysliced.com.au/. It works perfect, and it is quite easy to use. However, it is not responsive - contrary to the rest of the website. Here is what I got so far: CSS-part #lean_overlay { position: fixed; z-index:100; top: 0px; left: 0px; height:100%; width:100%; background: #000; display: none; } div.modalbox { background: #FFFFFF; border-radius: 5px; box-shadow: 0 0 4px rgba(0, 0, 0, 0.7); padding : 10px; width: 400px; display : none; position : absolute; } .modalbox-header { background: url("../images/hd-bg.png") repeat scro

Comments

Sign in or sign up to comment and upvote.

No comments yet.