This is a migrated thread and some comments may be shown as answers.

TelerikModalOverlay

2 Answers 92 Views
Window
This is a migrated thread and some comments may be shown as answers.
Simon Maystre
Top achievements
Rank 1
Simon Maystre asked on 24 Jun 2011, 05:33 PM

I have successfully managed to use the TelerikModalOverlay class to put an image behind a modal pop-up window, but I have a small issue in that the background image is not centered in the background and starts from the top-left of the browser. Below is the CSS I am using currently:

.TelerikModalOverlay
{
    background-position: center top !important;
    background: url(images/backgroundmain.jpg) !important;
    background-repeat: no-repeat;
    filter: alpha(opacity=99) !important;/*for IE 5.5+*/
    opacity: .99 !important;/*for FF 2x, Opera 9x*/
    -moz-opacity: .99 !important;/*for FF 1x*/  
    }

Is there any way to force the background image to be centered?

Thanks

Simon

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 27 Jun 2011, 07:46 AM
Hello Simon,

To achieve the desired behavior, you could use the following CSS:

.TelerikModalOverlay
        {
            background-position: center !important;
            background-image: url(images/backgroundmain.jpg) !important;
            background-repeat: no-repeat;
            background-attachment: fixed;
        }

That will put the background image in the screen center and it will stay there even if you scroll the page.


Regards,
Bojo
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Simon Maystre
Top achievements
Rank 1
answered on 27 Jun 2011, 09:06 AM
Excellent, thanks, that sorted out the problem and is now showing as required.

Simon
Tags
Window
Asked by
Simon Maystre
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Simon Maystre
Top achievements
Rank 1
Share this question
or