Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use only certain elements of Twitter Bootstrap?

Can I use only some certain elements of bootstrap library? For example, if I import the whole library, my page breaks because of conflicts between my CSS and Bootstrap's CSS; they are overwriting each other's properties.

If possible, I want something like just the button and div styling properties of the Bootstrap library.

like image 943
doniyor Avatar asked Apr 19 '13 06:04

doniyor


People also ask

Is Twitter, Bootstrap the same as Bootstrap?

There's no difference. Twitter Bootstrap was the official name for version 1.0 (Twitter Bootstrap). Later the name has been shortened.

Does twitter maintain Bootstrap?

We are happy to announce Bootstrap, a front-end toolkit for rapidly developing web applications. It is a collection of CSS and HTML conventions.

What does Twitter, Bootstrap have to do with web sites?

Twitter Bootstrap is a front end framework to develop web apps and sites fast. In modern web development, there are several components which are required in almost all web projects. Bootstrap provides you with all those basic modules - Grid, Typography, Tables, Forms, Buttons, and Responsiveness.

What kind of framework is Twitter, Bootstrap?

Twitter Bootstrap is an open source front end framework for HTML, CSS and JS, using which we can create a responsive UI for our web application. This is supported by all major browsers.


2 Answers

You can download whatever you need in the customized download of Twitter Bootstrap page. Just select whatever you need and click on download.

Also you can go to the project official repository, download all the less files, and compile only what is necessary for you, commenting the lines of the files that you don't need in the bootstrap.less file.

like image 77
Pigueiras Avatar answered Oct 05 '22 23:10

Pigueiras


Well I suggest you take the specific CSS rules out of the bootstrap CSS file and place them in your own CSS file, because it's kind of useless if you include the whole bootstrap CSS file in your website and then just 1 or 2 CSS rules of it.

You could also try to place the bootstrap CSS file first and then your CSS file after it in the HEAD section of your website. Usually your CSS file will be "more important" and then the specific styles which are applied by bootstrap will be overridden with your own rules.

<link bootstrap css definition />
<link your css definition />
like image 40
NielsC Avatar answered Oct 06 '22 01:10

NielsC