You need to sign in to do that
Don't have an account?
rajjjj
fixing column width in output panel
HI All,
I am trying to divide an output panel into 2 equal halfs while dynamic page refresh on clicking button.But the second half is taking more width than first half.Does anyone faced this problem of fixing the width into equal size.
Can anyone suggest an idea?
Hi,
Try the below code snippet as reference:
<apex:page >
<Apex:form >
<apex:pageBlock >
<div style="witdh:100%">
<div style="width:50%; float:left; posititon:relative">
<apex:pageBlockSection title="section first" >
<apex:pageBlockSectionItem >
<apex:outputLabel >Name</apex:outputLabel>
<apex:inputText />
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</div>
<div style="width:50%; float:right; posititon:relative">
<apex:pageBlockSection title="section 2" >
<apex:pageBlockSectionItem >
<apex:outputLabel >Name</apex:outputLabel>
<apex:inputText />
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</div>
</div>
</apex:pageBlock>
</Apex:form>
</apex:page>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi,
I have also facing same issue. Are you find any solution.
Thanks
Hi Ankit,
Here is my code. I want to repeat those 2 fields on left and when clicking on ri8.
Again left and ri8,....
But on first click its coming good....when i click on second time....the right part is occupying more space and left part is shrinking to left little bit. I want to fix both of them to equal width.
I have tried everything....style,styleclass,div...but its not working.
Thanks,
Rajjj.