SoftTimur SoftTimur - 3 months ago 9
CSS Question

Where the class "section" is defined?

I just downloaded a bootstrap template. The body of

index.html
consists of several sections:

<section id="promo" class="promo section offset-header has-pattern">
...
</section>

<section id="features" class="features section">
...
</section>

<section id="how" class="how section has-pattern">
...
</section>


In its
styles.css
, I could find, for example,

.features {
padding: 80px 0;
}
.features .icon {
...
}
.features .icon:hover {
...
}
.features .icon:hover .fa {
...
}


However, I could NOT find anything about
section
. Does anyone know where the style of
features section
(and
promo section offset-header has-pattern
,
how section has-pattern
) is normally defined?

Answer

The section class in Bootstrap is just display: block;

Below is the Bootstrap code where section is defined. This is defined on about line 26 in the bootstrap CSS file.

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}
Comments