Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to popup in center of screen by CSS

Posted on 2014-12-13
12
Medium Priority
?
178 Views
Last Modified: 2014-12-16
Hi ,
please see the attached sample , when I click the "question" in how to popup in center, it popup in right of screen  , how can it popup in center of screen?

it is better to change by CSS

jquery is also good
sample.zip
0
Comment
Question by:GordonLiq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 15

Expert Comment

by:Edwin Hoffer
ID: 40498618
Hello Gordon,

Please find the attached file, I tried to solve the question.

If you still need any help, feel free to ask.

Thanks
Edwin
sample.zip
0
 
LVL 15

Expert Comment

by:Edwin Hoffer
ID: 40498620
If you want to change the position of the box, change left and right position in "tipsexplain" class
0
 

Author Comment

by:GordonLiq
ID: 40498659
Hi,
thank you ,
It works , but the problem is the width of popup is dynamic , so if I limited the left or right , for some popup , the width may not enough , for other , may left lot of blank at right side like the attachment.
2014-12-14-20-08-06.png
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 15

Expert Comment

by:Edwin Hoffer
ID: 40498767
Sorry, but i can't get you correctly. Can you pleas explain little more?

Do you want the content to show in left side?
0
 

Author Comment

by:GordonLiq
ID: 40499183
the popup text is dynamic , so the width of the popup window is not fixed as well , said my screen is 1920x1080 and if I set the left : 10% , right 10% ,     the popup window will be fixed to about 1500px ;
then if my popup window only width 500px ; it will still have a popup window at 1500px ; but the text inside the windows only used 500px , the right side will has 1000px blank , I want to make the popup window's width fit the text if possible , to eliminate the blank area at right side.
0
 
LVL 15

Expert Comment

by:Edwin Hoffer
ID: 40499657
I think you are talking about the inner content of the body.

I tried to do this.

If you still need any changes, let me know.

Thanks
Edwin
sample.zip
0
 

Author Comment

by:GordonLiq
ID: 40503834
please check this sample , this is what I said not fit for auto width with blank
sample-1-.zip
0
 
LVL 15

Expert Comment

by:Edwin Hoffer
ID: 40504109
I have attached the edited file, if you still need any changes let me know.

Thanks
Edwin
sample-1-.zip
0
 

Author Comment

by:GordonLiq
ID: 40504120
Hi Edwin,

thank you ,
but the scroll bar is not on right side of popup window , it located in somewhere middle,

the solution will be better if one of these
make the popup window fit the width of content , narrow down in this sample.
or
make the scroll bar on right side of popup window.
0
 
LVL 15

Accepted Solution

by:
Edwin Hoffer earned 2000 total points
ID: 40504135
I tried to do some some changes, hope it will be fine now.
sample-1-.zip
0
 

Author Comment

by:GordonLiq
ID: 40504146
thank you ,
scroll bar now in correct position
0
 
LVL 15

Expert Comment

by:Edwin Hoffer
ID: 40504152
You are most welcome :)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

661 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