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

Custom Skin on MasterPage

6 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 30 Jun 2010, 09:54 PM
My website is using master pages and for any custom skins that I am using, I am including the skins in the App_Themes folder,  and setting the Theme page attribute to my custom theme name.  This works great for content pages, however, I cannot set a custom skin on a RadSiteMap control inside the master page.  I tried manually referencing the custom skin file and still doesn't work.  Any advice on how to do this?
thanks,
Hector

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Jul 2010, 08:56 AM
Hi Hector,

I tried to reproduce this issue but to no avail - the skin of the sitemap is loaded as expected. Could you please open a support ticket and send us a simple page demonstrating the problem? Thanks in advance

Greetings,
Yana
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Hector
Top achievements
Rank 1
answered on 07 Jul 2010, 01:56 PM
Yana, I got it to work by overriding a CSS property for the UL.  My custom skin was being applied, however, there where still some settings from the WebResource.axd beign applied, and that is why I thought my skin was not being used.  I wanted to center the site-map by applying text-align: center, but is was being overriddent.  When I looked at firebug, I could see these settings from WebResource.axd on the RadSiteMap:
.RadSiteMap .rsmFlow{ 
  text-alignleft
  padding-bottom5px

I could not override these settings, but I finally did by adding a css class to all the UL elements
UL { 
  text-aligncenter 

0
Yana
Telerik team
answered on 07 Jul 2010, 03:49 PM
Hello Hector,

You can use "!important" css rule when you need to overwrite some css style.

Best regards,
Yana
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Hector
Top achievements
Rank 1
answered on 07 Jul 2010, 03:51 PM
Yes, I tried that on my skin, but it was still not overriding the value, but it did work when I did it on the UL element.
UL {  
  text-aligncenter !important; 
}  

0
Yana
Telerik team
answered on 08 Jul 2010, 11:43 AM
Hi Hector,

I'm sorry I wasn't clear enough.

Could you please try it like this:

.rsmList { text-align: center !important; }

Let us know how it goes.

All the best,
Yana
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Hector
Top achievements
Rank 1
answered on 08 Jul 2010, 02:19 PM
OK, thank you Yana.  .rsmList class did not work, I had to set it to .rsmFlow and it works great now. 

.rsmFlow
{
    text-align: center !important;
}
Tags
General Discussions
Asked by
Hector
Top achievements
Rank 1
Answers by
Yana
Telerik team
Hector
Top achievements
Rank 1
Share this question
or