This flavor of Bootstrap has been modified to play nice (or at least nicer) with Visualforce by including a higher level of specificity to the CSS. If you have any questions or issues, post them in the issues or do a pull request if you add/fix/change anything that might be useful for others.
Currently, only css/bootstrap.css
has undergone modifications.
Clone the repo, git clone git@github.com:colinloretz/visualforce-bootstrap.git
.
Create a zip archive of all the assets. In Salesforce, upload this zip file as a static resource. You can do so under Setup > Develop > Static Resources.
To include the assets in your visualforce page, please refer to Delivering Static Resources with Visualforce.
In order to make everything look neat, be sure to wrap all of your Bootstrap HTML markup in an div with an ID of force
, as shown below.
<div id = "force">
<!-- Bootstrap HTML markup here -->
</div>
Thank you for all your work on Bootstrap!
Mark Otto
Jacob Thornton
Copyright 2012 Twitter, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.