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

AuthenticationView background image

2 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Trevor
Top achievements
Rank 1
Trevor asked on 10 Jan 2016, 11:31 PM

Hi,

I'm having problems loading a background image for the authentication view as a cover for the whole body. The image seems to be linked to the Signin and Signup views, everytime the view switches. I've tried a few things without success.  Currently the image is loaded like below:

#kendoUiMobileApp .front-page {
    background-image: url(../styles/images/frontpage.gif);
    background-repeat: no-repeat;
    height: 100%;
    background-size:cover;
    margin: 0 auto;
     
}
 

 

 Appreciate all the help.

Thanks,
Trevor

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 13 Jan 2016, 04:43 PM
Hello Trevor,

You could specify an id for the Authentication view:
<div data-role="view" data-title="Authentication" id="test" ... />

Then, apply a style similar to the following examples:
/* View content backgrounds */
#kendoUiMobileApp #test .km-content {
     background-image: url(../styles/images/frontpage.gif);
   // background: linear-gradient(#06D6A0, #35A7FF);
}
  
/*View header backgrounds */
#kendoUiMobileApp #test .km-navbar {
   //background-image: url(../styles/images/frontpage.gif);
   background-color: #06D6A0;
}

I hope this helps.

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Trevor
Top achievements
Rank 1
answered on 13 Jan 2016, 05:43 PM

worked great!  I just added

 

background-size:cover;

 

Thank you!
Trevor

Tags
General Discussions
Asked by
Trevor
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Trevor
Top achievements
Rank 1
Share this question
or