Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change twitter bootstrap background color

I already tried the custom function from the website, but keeps give me error, and tried the BASIC method too:

body {background-color:red;}

so, does anyone know?

like image 695
betoharres Avatar asked Dec 08 '13 17:12

betoharres


People also ask

How do I change the background color in Bootstrap?

We can add background color to a div by simply adding class “bg-primary”, “bg-success”, “bg-danger”, “bg-info”, and many more as shown in the following examples.

How do I make the background transparent in Bootstrap?

To change that opacity, override --bs-bg-opacity via custom styles or inline styles.

How do I change the color of a link in Bootstrap?

You can use . text-reset class to reset the color from default blue to anything you want.

How do you change the background color of a body tag?

To set the background color in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <body> tag, with the CSS property background-color. HTML5 do not support the <body> tag bgcolor attribute, so the CSS style is used to add background color.


1 Answers

Download all of the bootstrap files and somewhere inside the .css file add:

body {
   background:red !important;
}
like image 154
scooterlord Avatar answered Oct 05 '22 04:10

scooterlord