• Sanchai CRM-C
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi All

 

I have try to work on Force.com site.

 

I need to use custom stylesheet on the page. So I try to study by myself from http://www.salesforce.com/us/developer/docs/pages/Content/pages_styling_custom.htm

 

I have some problem that I cannot use custom css file on my page.

 

Below this is my VF page code.

 

 

<apex:page showHeader="false" standardStylesheets="false">
	<apex:stylesheet value="{!$Resource.customCSS}" />

	<h1>Testing Custom Stylesheets</h1>

	<p>This text could go on forever...<BR /><BR />But it won't!</p>

	<apex:outputLink value="https://www.salesforce.com" styleClass="newLink">
		Click here to switch to www.salesforce.com
	</apex:outputLink>

</apex:page>

 And customCSS file is : 

 

h1 { color: #FF0000; }

p { background-color: #EEEECC; }

newLink { color: #FF6600; font-weight: bold;}

 for the result http://crmmarket-developer-edition.na7.force.com/index

 

 

the code result is :

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
 
 
	<html><head><script src="/index/jslibrary/1296001444000/JiffyStubs.js" type="text/javascript"></script><link class="user" href="/index/resource/1299612283000/customCSS" rel="stylesheet" type="text/css" /></head><h1>Testing Custom Stylesheets</h1> 
 
	<p>This text could go on forever...<BR /><BR />But it won't!</p><a href="https://www.salesforce.com" class="newLink"> 
		Click here to switch to www.salesforce.com</a></html>

 

 

I think h1 should show the text in the red but it dose not.

 

Please advise me that what I am wrong?

 

Hi All

 

I have found some problem about SOQL query.

I have set private record.

Each user can see the own record. But I need to use APEX code to query all data. Not only find in their record.

 

Do you have any idea?

Hi All

 

I have try to work on Force.com site.

 

I need to use custom stylesheet on the page. So I try to study by myself from http://www.salesforce.com/us/developer/docs/pages/Content/pages_styling_custom.htm

 

I have some problem that I cannot use custom css file on my page.

 

Below this is my VF page code.

 

 

<apex:page showHeader="false" standardStylesheets="false">
	<apex:stylesheet value="{!$Resource.customCSS}" />

	<h1>Testing Custom Stylesheets</h1>

	<p>This text could go on forever...<BR /><BR />But it won't!</p>

	<apex:outputLink value="https://www.salesforce.com" styleClass="newLink">
		Click here to switch to www.salesforce.com
	</apex:outputLink>

</apex:page>

 And customCSS file is : 

 

h1 { color: #FF0000; }

p { background-color: #EEEECC; }

newLink { color: #FF6600; font-weight: bold;}

 for the result http://crmmarket-developer-edition.na7.force.com/index

 

 

the code result is :

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
 
 
	<html><head><script src="/index/jslibrary/1296001444000/JiffyStubs.js" type="text/javascript"></script><link class="user" href="/index/resource/1299612283000/customCSS" rel="stylesheet" type="text/css" /></head><h1>Testing Custom Stylesheets</h1> 
 
	<p>This text could go on forever...<BR /><BR />But it won't!</p><a href="https://www.salesforce.com" class="newLink"> 
		Click here to switch to www.salesforce.com</a></html>

 

 

I think h1 should show the text in the red but it dose not.

 

Please advise me that what I am wrong?