Click here to Skip to main content
14,664,385 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

you can use css property

eg:

$("#Divid").css({
        position: "absolute",
        top: 200px;,
        left: 200px;
    })
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100