Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.89/5 (2 votes)
See more:
a div display in bottom of the popup dialog. i want to display this div in center of popup when i click on button using jquery.
Posted
Updated 20-Aug-14 4:25am
v2
Comments
Sergey Alexandrovich Kryukov 20-Aug-14 11:52am    
Not really related to MVC. The question is: change alignment or the order of elements? You can do both.
What's wrong with reading jQuery documentation?

Please see:
How to ask a question?,
What have you tried?

—SA

1 solution

you can use css property

eg:

C#
$("#Divid").css({
        position: "absolute",
        top: 200px;,
        left: 200px;
    })
 
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