function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anagramanagram 

How to find CSS class name for custom web tab in s-control?

Hi-
I've created an html s-control and assigned it to a custom web tab with an associated icon and color.

I've updated it using the outlines in this guide for setting the styles so that it looks like a native Salesforce page. Brilliant.
http://wiki.apexdevnet.com/index.php/Stylesheets_and_S-Controls_Best_Practice_Guide

Specifically it shows that you use <BODY class="xxx"> to set the overall color scheme and icon for the page.

However, I want to use the color and icon from my custom web tab when displaying the s-control. Seems like it should be possible. This thread shows how to get the class name for Salesforce's built-in styles:
http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=2012

But is there some way to know what the class name is for the style defined in my custom web tab? Seems like there should be a way. But how?

Thanks,
Nicholas
jyotijyoti

Not sure if this will help you, but you can try just doing a simple right-click > View Options on the page?

anagramanagram
Hmm, not sure what you're suggesting. I have no example of this working so I can't look at the underlying code. The web tab style is custom and I want to know how to get it to display.

I'm not sure what the custom icon and color are for if there's no way to get them to display!

Nicholas