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

  • SEARCH
  • Home
  • 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 8230193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:03:21+00:00 2026-06-07T17:03:21+00:00

In my Web application I have content in a div, which will be positioned

  • 0

In my Web application I have content in a div, which will be positioned in the center of the browser window.
This content is hidden at the beginning and one time has few content, another time much content, so the dimensions of the div and the position of the top left corner change.

I use the jQuery UI position utility in order to position the div, but it cannot handle hidden elements.

Until now I did the following:
* The div is hidden (display: none) and has opacity 0, “top” is 0 and “left” is 0.
* Now I change from display “none” to “block”.
* Because of the opacity 0 the div is still not recognizable at the top left corner of the window.
* In this situation I position the div with jQuery ui position to center.
* After that I change from opacity 0 to 1.
* This way I wanted the user not to see the “jumping” from the 0/0 to the center position.

Now I want to simplify my widget.
I want to put away the opacity, just change from display “none” to “block” and position the div.

I will soon test it and I will see if I see the div “jumping” from some start postion to the target position. The problem is that I only have relatively fast machines for testing.

And if some people will tell me that users will see the jumping from the initial position to the target position on slow machines/slow browsers I will not change anything with my widgets.

Thanks alot in advance

  • 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-07T17:03:22+00:00Added an answer on June 7, 2026 at 5:03 pm

    You will notice it jumping to the middle of the page even on a very fast machine. Guaranteed.

    Instead you should use visibility: hidden; instead of display: none;. Objects hidden that way, still maintain their box size and your position plugin will have no problem centering it.

    Toggle the visibility property to visible when you want to show the div.

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

Sidebar

Related Questions

I have code like this on some aspx page in my Web Application: <asp:Content
In a mobile web application I have a div which can be scrolled with
I have a web application that has a page that loads the content from
We have a very simple ASP.NET web application comprising mostly static content and a
I have a reviews/ratings web application, a la Digg. My django app content has
I have one question; In my ASP.NET MVC web application have to do certain
In my web application users have the ability to upload games which are then
I have a web application that fetches a lot of content via ajax. For
I am developing a web based application in which i have two hyperlinks in
I am using an ASP.Net Web Application project. I have a user control which

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.