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
anukarthi_nimmalaanukarthi_nimmala 

regarding panelgrid

Hi,

 

I have a panelgrid with  3command  buttonsas below

 

<apex:panelGrid columns="3" style="margin-top:1em;" width="100">
     <apex:CommandButton value="Prev" action="{!onPrev}" immediate="true" styleClass="buttons"  style="width:50px;"    />
     <apex:CommandButton value="Next" action="{!onNext}"   styleClass="buttons" style="width:50px;"    />
     <apex:CommandButton value="Save" action="{!updateEvent}" styleClass="buttons" style="width:50px;"  />

 

The problem here is the spacing between button to button is so large i want to reduce it .So please tellme how to reduce the spacing between the buttons .Even though i used attribute cellspacing is 0 still its not reducing so please someone help me how to do it.

krishnagkrishnag

if you are using the standard stylesheets you cannot change it.make the standardstylesheets = false and use custom style sheets then it will work fine.