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

Tile with colorgradient

1 Answer 41 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Thomas Luck
Top achievements
Rank 1
Thomas Luck asked on 12 Feb 2015, 10:23 AM
Hello Telerik team

I am curious whether i can create a color gradient like windows 8 tiles have it.

Greetings
Thomas Luck

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 12 Feb 2015, 12:31 PM

Hi Thomas,

Have you tried overriding the background CSS property of the desired tile? Here is an example I built by using an online gradient generator:

<telerik:RadTextTile runat="server" ID="RadTextTile1" CssClass="myGradientTile"></telerik:RadTextTile>
div.RadTile.myGradientTile
{
    background: #a90329; /* Old browsers */
    background: -moz-linear-gradient(top#a90329 0%, #8f0222 44%, #6d0019 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a90329), color-stop(44%,#8f0222), color-stop(100%,#6d0019)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top#a90329 0%,#8f0222 44%,#6d0019 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top#a90329 0%,#8f0222 44%,#6d0019 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top#a90329 0%,#8f0222 44%,#6d0019 100%); /* IE10+ */
    background: linear-gradient(to bottom#a90329 0%,#8f0222 44%,#6d0019 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a90329', endColorstr='#6d0019',GradientType=0 ); /* IE6-9 */
}


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TileList
Asked by
Thomas Luck
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or