How to display UpdateProgress at the center of a grid view with CSS?


Tags: asp.net,css,webforms,updatepanel,updateprogress

Problem :

Need to display Update Progress at the center of a Grid view placed in a Ajax Update Panel. Is there a way to place the Update progreass control at the center of the grid view (or else center of the page) with CSS (without using jQuery or Java Script)?



Solution :

Put the grid-view and update progress html within a wrapper div. Position div relatively and position the update progress absolutely at center.

See this jsfiddle that I have set up: http://jsfiddle.net/DDdyU/

key styles are

.wrapper
{
    position: relative;
}
.updateProgress
{
    position:absolute;
    top: 50%;
    left: 50%;
    margin-left: -50px;
    margin-right: -20px;
}

negative margins are half size of update-progress.


    CSS Howto..

    CSS styling - how to put these two div boxes adjacent

    How to shorten this placeholder-transitioning CSS selector using sass/compass?

    How to overcome Selenium CSS parent only CSS selector limitation

    How table-cell width with percentage value works?

    How to avoid Zalgo text bleeding all over place without totally removing it?

    How to use bootstrap css tables to display data from MySQL tables?

    How can I write in CSS if I'm using list tag for this? [closed]

    How to update CSS to values that were chosen in a form? (jQuery)

    How to apply bootstrap css to all buttons

    How should I change css style of fixed element to not crossing scrollbar

    How to resize QR code?

    How to pull css attributes from

    How to add a specific class to select2 drop element?

    How to reset Chrome dev tools CSS styles filter?

    Show submit button as an image

    links are showing up on each line, instead of inline

    How to create a rounded rectangle shape Css?

    How to write a CSS selector that works on nested divs and selects the closest match?

    How add “cover”/“shadow” on div?

    How to use custom CSS with my Sharepoint WebPart?

    How to use the compass transition mixins with a translateX property and autoprefixer?

    How do I add a custom CSS image to the target background behind a given layer of text in Squarespace?

    How to use bootstrap grid system overlaying a map

    How to setup a multi-department form using JavaScript

    How to display a table with a span at its side?

    How to implement a partially flexible screen layout with a grid framework?

    How to edit css live with ie6

    How to use external css file to style a javafx application

    How to reverse a CSS animation on unchecked state?

    How to increase a CSS value by the value of a JS variable?