Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8773585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:20:06+00:00 2026-06-13T18:20:06+00:00

There are quite a few dialogs in different pages, and to position them at

  • 0

There are quite a few dialogs in different pages, and to position them at the center of the screen, I wanted to apply one css. This however didn’t work.

   .ui-dialog{
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -100px;
  }

On adding .ui-dialog-content, ui-dialog-titlebar to the css, some parts of the dialog showed in the top left corner, some at the center, and some overlapped. How do I make the dialog box pop up at the center of the screen.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:20:08+00:00Added an answer on June 13, 2026 at 6:20 pm

    you should not use CSS to center primefaces dialogs. by default, they are centered. so I suggest that you remove any custom css to center dialogs, and if still dialogs are not centered submit an issue to primefaces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are quite a few other questions similiar to this but none of them
There are quite a few moving parts to this question, but if you have
I know that there are quite a few different topics out there but I
There are quite a few posts touching this topic. I thought I should ask
I know there are quite a few solutions for this problem but mine was
Disclaimer: I know there are quite a few questions out there with this topic
There are quite a few tools out there to debug JavaScript and CSS. Firebug,
I know there are quite a few questions on this already and i've looked
This question has been asked a lot and there are quite a few answers,
From this MSDN article , there's quite a few ways to hook up a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.