You need to sign in to do that
Don't have an account?
Shwetal Desai
Message Edited by Shwetal Desai on 11-25-2008 05:39 AM
Custom Style not working for "apex:commandButton"
I have created
Code:
<style>
.buttons{background-color : #a8a}
</style>
<apex:form>
<apex:commandButton value="Check In" action="{!savedata}" styleClass="buttons"/>
</apex:form>
.buttons{background-color : #a8a}
</style>
<apex:form>
<apex:commandButton value="Check In" action="{!savedata}" styleClass="buttons"/>
</apex:form>
tags in my VF page but still that button has "Gray" color in background.... not that defined color in inline Stylesheet.
What should i do ??
Thanks in advance.
Message Edited by Shwetal Desai on 11-25-2008 05:39 AM
I think it's because of the background image set by the 'btn' class. Try
yeah it was becoz of background image;
i set it "none" and its working..... now
Thanks....... to realize me my silly mistake
Hi,
I have a similar problem. The css class attributes are not getting applied when i use it with apex:commandbutton. But inline styles seem to work. This is my code.
Can somebody tell me where I am going wrong?
I have the same problem. Did you solve it? Can you share your solution? Thanks.
<style>
.buttons{background-color : #a8a !important;}
</style>
<apex:form><apex:commandButton value="Check In" action="{!savedata}" styleClass="buttons"/></apex:form>