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
learnSFlearnSF 

how to add Static resource style sheet in home page html component.

Hi,

 

I have Style sheet in Static resource.

I would like to add that in home page html component.

 

I know how to add this style sheet in visual force but I am confuse for home page html component.

 

Any ideas,suggestion...?

 

 

 

Greg HGreg H

Home page HTML components inherit the style sheets from the Home page itself.  To include a custom style you can either include the style declarations in the HTML of the component itself or you can create an sControl and use your custom style sheet in that sControl then include the sControl in the Home page using an iframe.

-greg
LarryHLarryH

I tried to create an SControl with my CSS in it, using iframe to reference the component. I've been using this to pull the CSS into my homepage HTML component:

 

<IFRAME src="/servlet/servlet.Integration?lid=IdOfScontrol&amp;enc=UTF-8&amp;ic=1"frameBorder=0 width="1" height="1"></IFRAME> 

 

However, nothing seems to be happening... any further suggestions?

-Larry