S
S
Senseich2017-08-12 21:21:36
css
Senseich, 2017-08-12 21:21:36

How to reset Bootstrap default padding?

In the Bootstrap framework, the default padding is standard, for example, all columns and the container use padding-right: 15px; padding-left: 15px And if the layout needs other indents? In general, is it possible to reset them somehow or assign others without using! importent (heard that a lot of ! importent is bad for Seo, maybe I'm wrong).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
Xeli, 2017-08-12
@Xeli

How to reset Bootstrap default padding?

Assign your own with a higher priority (RTFM - "weight of CSS selectors".) either build your Bootstrap build on their site, or use less or sass sources.
! importent
! import Ant
Shouldn't have any effect. It affects the weight of CSS selectors and is confusing. Normal developers use the !important property only for testing when you need to quickly redefine some selector, but there is no time to calculate the weight, or laziness.
note: Bootstrap developers are not normal, so they sculpt !important here and there, and in general they wanted to shit on the cleanliness of the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question