R
R
rusher872016-10-27 13:37:55
css
rusher87, 2016-10-27 13:37:55

How to make popup scroll only in mobile browsers?

I have a popop with a certain height. On a mobile device, the screen is small and therefore the popup pops out of the screen, how to make the popup scroll only on mobile phones, or so that you can press it with your finger and pull out the invisible part from behind the screen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
taki154, 2016-10-27
@rusher87

.popup{
position: fixed;
top: 20px;
left: 20px;
right: 20px;
bottom: 20px;
}

.popup_sub{
height: 100%;
overflow: auto;
}

redefine popup styles by media query to what is written above.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question