Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my friends there is a modal pop up extender and it has iframe iframe has a webform

but modal pop up extender if it is open different position when monitor resolution different

how to fix this problem for monitor resolution if it is different
I know css code but I didnt do

this is my css modalpopup and i frame code

CSS
.modalPopup
    {

    border-width:1px;
    border-style:solid;
    border-color:#ffffdd;
    padding:3px;
    height:600px;
    width:930px;

    margin-left:-98%;

    margin-top:-21%;




    position:relative;



    }

    .iframesize
    {

     border-width:1px;
    border-style:solid;
    border-color:#ffffdd;
    padding:3px;
    height:600px;
    width:930px;
    position :relative;

    margin-left:-98%;

    margin-top:-45%;



        }
Posted
Comments
deepak@10520046 13-Jan-14 7:01am    
are you fine with jquery usage?

1 solution

Get the screen height and width using jquery
screen.height;
screen.width;
Then set the window height and width dynamically on document.ready()
 
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