How to center my dialog window inside a div?

Posted on 2013-05-10
Last Modified: 2013-05-13
Hello guys

I have a div that is the container of my html code. Something like this:

  <div id="container">
     all my html code is here

Open in new window

When I call the dialog, I want it to open in the center of the div container

I use dialog Widget, this code

How can I do this?
Question by:hidrau
LVL 82

Accepted Solution

leakim971 earned 500 total points
ID: 39156714
.dialog({ position:  { my: "center", at: "center", of: "#container" } });

Author Closing Comment

ID: 39161095
thanks very much friend

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question