You need to sign in to do that
Don't have an account?

Using bootstrap in salesforce
iam using the bootstarp buttons in the salesforce-- button it was not effection eventhough used the libraries ...
in need the default button colurs for the all the buttons in the visualforce page... what should have to be include
in need the default button colurs for the all the buttons in the visualforce page... what should have to be include
<apex:page > <html> <head> <title>Bootstrap Example</title> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Button Styles</h2> <button type="button" class="btn">Basic</button> <button type="button" class="btn btn-default">Default</button> <button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-danger">Danger</button> <button type="button" class="btn btn-link">Link</button> </div> </body> </html> </apex:page>
Kindly include these two attributes in the <apex:page> tag -
showHeader="false" standardStylesheets="false"
If it helps you, kindly mark it as best answer so that It will help the community.
Thanks,
Parmanand Pathak
thanks
sree
Then you should go for SLDS(Salesforce Lightning Design System).
Include <apex:slds /> in you VF code and use the SLDS library to include the styles -
https://www.lightningdesignsystem.com/
Try below code it work with show header -
Let me know if you have any issue related to this.
Thanks,
Parmanand Pathak
Vyomlabs Pvt. Ltd, Pune
hope you understand
thanks
sri
I have also faced this issue and I had written a custom style class for buttons as below -
You can customize the code as per your requiremenet.
Thanks,
Parmanand Pathak
thanks
sri vani