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
anil jadhav 8anil jadhav 8 

i have created vf page in which i used css to design menu. when i open by using preview button everything goes correctly. when i am opening same page with created site link, doesn't getting css, getting just names over there. Help me to get out from this.

Code here
<apex:page > <apex:form >
<html> <head>
<apex:stylesheet value="{!URLFOR($Resource.jqueryMenu, 'styles.css')}"/>
</head>
<body >
<h1>CSS3 Minimalistic Navigation Menu</h1>
<div id="main"> <ul id="navigationMenu"> <li> <a class="home" href="#"> <span>Home</span> </a> </li> <li> <a class="about" href="#"> <span>About</span> </a> </li> <li> <a class="services" href="#"> <span>Services</span> </a> </li> <li> <a class="portfolio" href="#"> <span>Portfolio</span> </a> </li> <li> <a class="contact" href="#"> <span>Contact us</span> </a> </li> </ul> </div> </body> </html> </apex:form> </apex:page>


 
Best Answer chosen by anil jadhav 8
ShashankShashank (Salesforce Developers) 
Set the Cache Control setting of the CSS static resource to Public. Static resources with private cache control do not show up in sites.

If this answers your question, please mark it as the best answer so that others can benefit from this post.