views:

32

answers:

1

hello everyone.

I'm new here at Stack Overflow and this is my first question.

I'm a rookie in .NET programming, my only real life programming experience is COBOL so go easy on me :p

The thing is:

I want to, when the user clicks a button on my website, to make a div appear in the center of the browser above all other content on the website. I have created the div and even have the visible/hidden thingy figured out. The overlaying and the centering parts are what's getting on my nerves. Can someone help me please?

Thanks in advance and sorry for eventual bad spelling and grammar :p

A: 

You're talking about a shadowbox/modal window. Microsoft provides an example of this in their AJAX control toolkit if you want to stay strictly C#. This can also be done easily with third party API's, using jQuery, such as ShadowBox.js or DOM Window

The works done for you. You just need to plug it in.

George