Kosala esika oyo ezali na kati
Bootstrap ezali na ba classes ya utilitaire ya marge responsive ya stenographie mpe ya padding mpo na ko modifier apparence ya élément moko.
Bopesa responsive-friendly margin
to padding
ba valeurs na élément to sous-ensemble ya ba côtés na yango na ba classes ya stenographie. Esangisi lisungi ya ba propriétés moko moko, ba propriétés nionso, mpe ba propriétés verticales mpe horizontales. Ba kelasi etongami uta na karte ya Sass ya liboso oyo ebandi na .25rem
kino na 3rem
.
Ba utilitaires ya espacement oyo etali ba points de rupture nionso, kobanda xs
na xl
, ezali na abréviation ya point de rupture te na kati na yango. Yango ezali mpo ete bakelasi wana esalelamaka uta min-width: 0
mpe likolo, mpe bongo ekangami te na motuna ya media. Nzokande, ba points de rupture oyo etikali ezali na abréviation ya point de rupture.
Ba kelasi epesameli nkombo na kosalelaka format {property}{sides}-{size}
mpo na xs
mpe {property}{sides}-{breakpoint}-{size}
mpo na sm
, md
, lg
, mpe xl
.
Epayi wapi biloko ezali moko ya:
m
- pona ba classes oyo ezo setmargin
p
- pona ba classes oyo ezo setpadding
Epayi wapi mipanzi ezali moko ya:
t
- pona ba classes oyo etiemargin-top
topadding-top
b
- pona ba classes oyo etiemargin-bottom
topadding-bottom
l
- pona ba classes oyo etiemargin-left
topadding-left
r
- pona ba classes oyo etiemargin-right
topadding-right
x
- mpo na bakelasi oyo etie nyonso mibale*-left
mpe*-right
y
- mpo na bakelasi oyo etie nyonso mibale*-top
mpe*-bottom
- blank - pona ba classes oyo etie a
margin
topadding
na ba côtés nionso 4 ya élément
Epayi wapi bonene ezali moko ya:
0
- mpo na bakelasi oyo elongolakamargin
topadding
na kotiaka yango na0
1
- (par défaut) mpo na ba classes oyo etiemargin
topadding
na$spacer * .25
2
- (par défaut) mpo na ba classes oyo etiemargin
topadding
na$spacer * .5
3
- (par défaut) mpo na ba classes oyo etiemargin
topadding
na$spacer
4
- (par défaut) mpo na ba classes oyo etiemargin
topadding
na$spacer * 1.5
5
- (par défaut) mpo na ba classes oyo etiemargin
topadding
na$spacer * 3
auto
- mpo na bakelasi oyo etyakamargin
na auto
(Okoki kobakisa ba taille mosusu na kobakisa ba entrées na $spacers
variable ya carte Sass.)
Talá mwa bandakisa oyo ezali komonisa bakelasi yango:
En plus, Bootstrap ezali mpe na .mx-auto
classe moko mpo na ko centrer horizontalement contenus ya niveau ya bloc ya largeur fixe —elingi koloba, contenus oyo ezali na yango display: block
mpe width
ensemble moko —na kotiaka ba marges horizontales na auto
.