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

Pixel Perfect Backgrounds

1 Answer 35 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.
Piotr
Top achievements
Rank 1
Piotr asked on 01 Oct 2016, 05:00 AM

Hi,

What would be the best way, to display pixel perfect backgrounds for the views (in a manner similar to splashscreens). With device orientation support.

Best

Piotr

 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 05 Oct 2016, 11:02 AM
Hello Piotr,

If your image is big enough (I guess so, as you mention that it is similar to a splashscreen), you can set it as a background with size property set to cover:
.km-nova div.km-content {
    background-image: url('background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
For other skins, replace "nova" with the skin name. 

The cover value specifies that the background image should be sized so that it is as small as possible while ensuring that both dimensions are greater than or equal to the corresponding size of the container (reference).


Let me know if this is the appearance that you are looking for.

Regards,
Tsvetina
Telerik by Progress
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
Tags
General Discussions
Asked by
Piotr
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or