adding scroll bar to modal/popup window

Hello, I am wanting to to set a fixed width and height to a popup and have a scroll bar that will allow viewers to see all the content. I have put all my code in jsfiddle at this location http://jsfiddle.net/jaxbrian/N87G5/2/

I would also like to know how to set the modal to popup in the center of your viewing area. if this is to much to ask, maybe a direction to some documentation on it.

thank you very much in advance

jaxbrian
LVL 2
jaxbrianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nishant joshiTechnology Development ConsultantCommented:
#mask{position:absolute;left:0;top:0;z-index:9000;background-color:#000;display:none;overflow:auto;}
#boxes .window{
    position:absolute;
    left:20%;
    top:150px;
    width:750px;
    height:auto;
    display:none;
    z-index:9999;
    padding:20px;
}
#boxes #dialog{padding:10px;background-color:#badf92;}
#boxes #dialog2{padding:10px; margin-top:15px;background-color:#badf92;}
#boxes #dialog3{padding:10px;background-color:#badf92;}
0
Kyle HamiltonData ScientistCommented:
Here it is centered.

(I changed the width and height of the .window just so it's visible what's going on - change it to whatever you like.)

http://jsfiddle.net/N87G5/6/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jaxbrianAuthor Commented:
thank you very much
0
Kyle HamiltonData ScientistCommented:
:)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.