Click here to Skip to main content
15,884,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In one of pages, there is a popup on a page. Currently, I defined the size of the popup in CCS (e.g., width: 250px; height: 220px). It displays fine on desktop screen. However, when the page is loaded on a cell phone, some of the items in the popup do not display. Now, we are consider how to size the popup relative to the screen (including cell phone). Greatly appreciate if you can hint me how to do it.
Posted

1 solution

This is how: http://www.w3schools.com/js/js_window_screen.asp.

However, it would be better to avoid popups. In many cases, they are inconvenient (it's better to leave it up to the user, to create a new window, a tab or navigate out of existing content on the same page). Also, due to some massive advertizement using pop-ups, many users may block them using Web browsers' features or plug-ins developed for this purpose.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900