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
anjisalesforce@gmail.comanjisalesforce@gmail.com 

How to assign css values in controls?

hi all,

 

How to assign css values in controls?

 

my code: 

<apex:page sidebar="false" showHeader="false" controller="Salonhome">
<apex:form style="background-color:yellow;">
<style>
.ff
{
width:80px; border: px solid #dadada; background: skyblue repeat-x; padding: 5px 3px; font: bold 12px Arial, Sans-serif;
}
</style>
<apex:commandButton value="Gallery" styleClass="ff"/>
</apex:form>
</apex:page>

 

this values doesn't effect button........

 

Can u please solve this problem its urgent..

 

 

thanks for u r help...

Best Answer chosen by Admin (Salesforce Developers) 
kiranmutturukiranmutturu

welcome if you are satisfied with this solution plz accept the post as solution. So that others will get benifit

All Answers

kiranmutturukiranmutturu

put standardStylesheets="false" in the apex:page component

anjisalesforce@gmail.comanjisalesforce@gmail.com

Thanks kiran

kiranmutturukiranmutturu

welcome if you are satisfied with this solution plz accept the post as solution. So that others will get benifit

This was selected as the best answer
anjisalesforce@gmail.comanjisalesforce@gmail.com

Dear kiran,

 

If you don't mind can u please solve this problem...

 

Q) How to change the toolbar background color in VF Page?

 

By default background color-- Green. how to change the background color ---Yellow

 

Can u please solve this one its urgent