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 77719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:52:28+00:00 2026-05-10T20:52:28+00:00

It has to be simple, here’s my CSS: .progressImage { position:relative; top:50%; } .progressPanel

  • 0

It has to be simple, here’s my CSS:

.progressImage  {   position:relative;   top:50%; }  .progressPanel { height:100%; width:100%; text-align:center; display:none; }  <asp:Panel ID='pnlProgress' runat='server' CssClass='progressPanel'> <asp:Image ID='Image1' runat='server' CssClass='progressImage' ImageUrl='~/Images/Icons/loading.gif' /> </asp:Panel> 

I toggle panel display depending on user action.

Works great in FireFox, but shows up at the top of the page in Safari.

p.s. ‘vertical-align:middle;’ doesn’t work either.

p.p.s. setting ‘position:relative;’ on the panel doesn’t work, setting ‘position:relative;’ on the panel and ‘position:absolute;’ on the image breaks it in FF and does nothing in Safari

THIS WORKED:

.progressPanel {   height:100%;   width:100%;   position:relative; }  .progressImage {   position:absolute;   top:50%;   left:50%; } 
  • 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. 2026-05-10T20:52:29+00:00Added an answer on May 10, 2026 at 8:52 pm

    Set the position of .progressPanel to relative, and the position of .progressImage to absolute. The following works for me in FF, IE, Safari. Set the negative margins to half the width/height of your image for perfect centering. Note that some parent of the progressPanel (body in this case) needs a height so that the progressPanel can fill it.

    <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'     'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>     <head>         <title>Test</title>         <style type='text/css'>         body {           height:700px;         }         .progressImage {           position:absolute;           top:50%;           left:50%;           margin-left:-16px;           margin-top:-16px;         }          .progressPanel {           position:relative;           height:100%;           width:100%;           text-align:center;           background:red;         }         </style>     </head>     <body>     <div class='progressPanel'><img class='progressImage' src='pic.jpg'/></div>     </body> </html> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Your method could work in theory, but there's a much… May 11, 2026 at 2:06 pm
  • added an answer 'Control over the HTML' is microsoft marketing-speak, and is how… May 11, 2026 at 2:06 pm
  • added an answer I've built a little test app with SL and MVC.… May 11, 2026 at 2:06 pm

Related Questions

It has to be simple, here's my CSS: .progressImage { position:relative; top:50%; } .progressPanel
I have been using the MySql Query Browser and [opinion]it has to be the
I need to store app specific configuration in rails. But it has to be:
I'm looking for a library like Cairo, just far faster. It has to be
We have an application that has to be flexible in how it displays it's
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am supposed to provide my users a really simple way of capturing video
EDIT : To people building tagging systems. Don't read this. It is not what
I was hacking away the source code for plink to make it compatible with

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.