I can't get any CSS to work at all. Am I missing something extremely obvious?
EDITED to include URLfor
<apex:page standardStylesheets="false" showHeader="false" >
<apex:stylesheet value="{!URLFOR($Resource.cssSampleGREEN)}"/>
<h1>test content for color output</h1>
</apex:page>
If I have a static resource called cssSampleGREEN which is the COMPLEX CSS code
<style type="text/css">
h1
{
color:#00cdcd;
}
I should at least have green output to my h1 text but that does not happen, I just get the below. What is my error?
Best Answer
It's fine - just take the
<style>
tags out of stylesheet.Static resource like this :-)