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
Karina ChangKarina Chang 

Pageblock width

I have 2 PageBlocks.... currently, each pageblock takes 50% of the screen. Is there a way to control the width of each one?  

<apex:pageBlock mode="maindetail" > <p></p>
         <apex:pageBlockSection >
                    <apex:pageBlock mode="maindetail" >
                        <apex:pageBlockTable value="{!Training_Course}" var="tc" id="pgtable" >     
                            <apex:column >        
                                <apex:commandLink value="{!tc.Training_Class_Name__c}" >
                                    <apex:param name="AID" value="{!tc.ID}" />
                                </apex:commandLink>
                            </apex:column>          
                        </apex:pageBlockTable>    
                    </apex:pageBlock> 
                    
                    <apex:pageBlock mode="maindetail" > 
                        <apex:detail subject="{!$CurrentPage.parameters.AID}" relatedList="false"  />        
                    </apex:pageBlock>     
        </apex:pageBlockSection>    
</apex:pageBlock>

Thanks!
 
SalesFORCE_enFORCErSalesFORCE_enFORCEr
Put your page blocks inside <div style="width:30%"> and then set the desired width