I want to make my visualforce page responsive. I want two column layout to display values of a record. Just like a detail page(Standard Salesforce page) of any record, Where two-column layout is there.
I am not getting right css or approach.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI want to make my visualforce page responsive. I want two column layout to display values of a record. Just like a detail page(Standard Salesforce page) of any record, Where two-column layout is there.
I am not getting right css or approach.
If you want to use Bootstrap for 2 columns and make it responsive use classes "Row" & "col-md-6". Bootstrap site has heavy set of examples and very good documentation on how to use these classes.
Late to the party, but this is how you can use bootstrap in your VisualForce page -
<apex:page>
<!-- Adding CSS -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" />
<div class="container">
<div class="row">
<div class="col-md-6">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </div>
<div class="col-md-6">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </div>
</div>
</div>
</apex:page>