merx
merx

Reputation: 21

Change jQuery Dialog Window Position

I'm using the Dialog from jQuery, http://jqueryui.com/dialog/#modal-message It works perfectly fine, I just can't seem to move the dialog window's position.

How do I achieve this? I've tried looking for the code in it's CSS, tried inspecting the element and everything, it just won't budge.

What am I doing wrong? Where do I actually modify it?

Upvotes: 2

Views: 2913

Answers (3)

designershyam
designershyam

Reputation: 95

if you want to drag this pop-up, just define

draggable: true,

if want to change position of pop-up just define vertical and horizontal position in

position: ['center', 'top']

Upvotes: 1

pierdevara
pierdevara

Reputation: 406

You can set the "position" setting when constructing it:

http://api.jqueryui.com/dialog/#option-position

Upvotes: 1

Rab
Rab

Reputation: 35572

You can set the position by setting the Position

as

See DEMO

Upvotes: 6

Related Questions