Skip to main content Skip ad navigationem soUicitudo
in English

Columnae

Disce quomodo columnas cum paucis optionum mutare ad noctis, ordinandi, et firmandi gratiarum nostrorum flexboxs ratiocinandi ratio. Plus, vide quomodo columnae classes uti ad latitudines elementorum non-eget.

Capita! Vide prius quam paginam incidere in Grid prius quam in columnas malesuada euismod mutare ac domitare tuum.

Quam ad operandum

  • Columnae aedificant architecturae flexboxs in malesuada euismod. Flexbox means we have options for changing details columns and modifying groups of columns at the level level . Vis ut columnae crescant, detrecto, vel aliter mutentur.

  • Cum aedificationem eget layout, omnia contenta in columnas vadit. Hierarchia eget eget Bootstrap a continente ad row ad columnam ad contenta tua vadit. Raro contentus et columna iungas, sed nescias consectarias notas esse posse.

  • Bootstrap includit praedefinitas classes ad conficiendas rationes ieiunii, responsivas. Cum sex fracturae punctis et duodecim columnis ad singulas craticulas ordine, justos classium iam aedificatos habemus pro te ad propositum tuum optatum creandum. Hoc per Sass si vis debilitari potest.

Gratia diei et noctis

Utere flexbox alignment utilitates ad perpendiculum et horizontaliter align columnas.

Gratia diei et noctis verticalis

Una trium columnarum
Una trium columnarum
Una trium columnarum
Una trium columnarum
Una trium columnarum
Una trium columnarum
Una trium columnarum
Una trium columnarum
Una trium columnarum
<div class="container">
  <div class="row align-items-start">
    <div class="col">
      One of three columns
    </div>
    <div class="col">
      One of three columns
    </div>
    <div class="col">
      One of three columns
    </div>
  </div>
  <div class="row align-items-center">
    <div class="col">
      One of three columns
    </div>
    <div class="col">
      One of three columns
    </div>
    <div class="col">
      One of three columns
    </div>
  </div>
  <div class="row align-items-end">
    <div class="col">
      One of three columns
    </div>
    <div class="col">
      One of three columns
    </div>
    <div class="col">
      One of three columns
    </div>
  </div>
</div>
Una trium columnarum
Una trium columnarum
Una trium columnarum
<div class="container">
  <div class="row">
    <div class="col align-self-start">
      One of three columns
    </div>
    <div class="col align-self-center">
      One of three columns
    </div>
    <div class="col align-self-end">
      One of three columns
    </div>
  </div>
</div>

Noctis Horizontalis

Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
Una duarum columnarum
<div class="container">
  <div class="row justify-content-start">
    <div class="col-4">
      One of two columns
    </div>
    <div class="col-4">
      One of two columns
    </div>
  </div>
  <div class="row justify-content-center">
    <div class="col-4">
      One of two columns
    </div>
    <div class="col-4">
      One of two columns
    </div>
  </div>
  <div class="row justify-content-end">
    <div class="col-4">
      One of two columns
    </div>
    <div class="col-4">
      One of two columns
    </div>
  </div>
  <div class="row justify-content-around">
    <div class="col-4">
      One of two columns
    </div>
    <div class="col-4">
      One of two columns
    </div>
  </div>
  <div class="row justify-content-between">
    <div class="col-4">
      One of two columns
    </div>
    <div class="col-4">
      One of two columns
    </div>
  </div>
  <div class="row justify-content-evenly">
    <div class="col-4">
      One of two columns
    </div>
    <div class="col-4">
      One of two columns
    </div>
  </div>
</div>

involutio columna

Si plures quam 12 columnae intra unum ordinem collocantur, singulae extra columnarum globi, ut una unitas, novam lineam involvent.

.col-9
.col-4
Cum 9 + 4 = 13 > 12, haec 4-columna-lata div involvit in novam lineam unam contiguam unitatem.
.col-6 Sequentes
columnae pergunt in linea nova.
<div class="container">
  <div class="row">
    <div class="col-9">.col-9</div>
    <div class="col-4">.col-4<br>Since 9 + 4 = 13 &gt; 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit.</div>
    <div class="col-6">.col-6<br>Subsequent columns continue along the new line.</div>
  </div>
</div>

Columna erumpit

Columnas fractis ad lineam novam in flexbox parvam hack requirit: elementum adde cum width: 100%quocunque columnas tuas ad novam lineam involvere vis. Communiter hoc fit cum multiplex .rows, sed non omnis modus exsecutionis huius rationem reddere potest.

.col-6 .col-sm-3
.col-6 .col-sm-3
.col-6 .col-sm-3
.col-6 .col-sm-3
<div class="container">
  <div class="row">
    <div class="col-6 col-sm-3">.col-6 .col-sm-3</div>
    <div class="col-6 col-sm-3">.col-6 .col-sm-3</div>

    <!-- Force next columns to break to new line -->
    <div class="w-100"></div>

    <div class="col-6 col-sm-3">.col-6 .col-sm-3</div>
    <div class="col-6 col-sm-3">.col-6 .col-sm-3</div>
  </div>
</div>

Hanc confractionem ad certas confractiones applicare etiam potest cum utilitates nostras responsivas ostentationis .

.col-6 .col-sm-4
.col-6 .col-sm-4
.col-6 .col-sm-4
.col-6 .col-sm-4
<div class="container">
  <div class="row">
    <div class="col-6 col-sm-4">.col-6 .col-sm-4</div>
    <div class="col-6 col-sm-4">.col-6 .col-sm-4</div>

    <!-- Force next columns to break to new line at md breakpoint and up -->
    <div class="w-100 d-none d-md-block"></div>

    <div class="col-6 col-sm-4">.col-6 .col-sm-4</div>
    <div class="col-6 col-sm-4">.col-6 .col-sm-4</div>
  </div>
</div>

Reordering

Ordo classes

Utere .order-classes ad moderandum ordinem contentus visualium tuorum. Classes haec responsabilia sunt, ut orderper confractionem (eg, .order-1.order-md-2). Includes support for 1per 5omnes sex ordines versus.

Primum in dom
Secundo in dom
Tertio in dom, cum ordine 1 .
<div class="container">
  <div class="row">
    <div class="col">
      First in DOM, no order applied
    </div>
    <div class="col order-5">
      Second in DOM, with a larger order
    </div>
    <div class="col order-1">
      Third in DOM, with an order of 1
    </div>
  </div>
</div>

Sunt etiam responsiva .order-firstet .order-lastclasses, applicando et respective ordermutando elementi . Hae classes etiam immisceri possunt cum classibus numeratis prout opus est.order: -1order: 6.order-*

Primo in dom
Secunda in dom
tercio anno dom
<div class="container">
  <div class="row">
    <div class="col order-last">
      First in DOM, ordered last
    </div>
    <div class="col">
      Second in DOM, unordered
    </div>
    <div class="col order-first">
      Third in DOM, ordered first
    </div>
  </div>
</div>

Offsetting columnas

Vos can offsets eget columnas in duobus modis: nostri responsive .offset-grid classes et utilitates nostrae marginis . Eget classes magnitudines ad columnas aequant, margines magis utiles sunt ad propositum velox ubi latitudo cinguli variabilis est.

Offset classes

Movere columnas ad dextram utendi .offset-md-*classes. Haec genera columnae marginem sinistrum augent *. Nam .offset-md-4movet .col-md-4quattuor columnas.

.col-md-4
.col-md-4 .offset-md-4
.col-md-3 .offset-md-3
.col-md-3 .offset-md-3
.col-md-6 .offset-md-3
<div class="container">
  <div class="row">
    <div class="col-md-4">.col-md-4</div>
    <div class="col-md-4 offset-md-4">.col-md-4 .offset-md-4</div>
  </div>
  <div class="row">
    <div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div>
    <div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div>
  </div>
  <div class="row">
    <div class="col-md-6 offset-md-3">.col-md-6 .offset-md-3</div>
  </div>
</div>

Praeter columnas aperiendas ad fracturas responsivas, necesse est ut exsertiones retexere. Vide hoc in agendo in malesuada euismod exemplo .

.col-sm-5 .col-md-6
col-sm-5 .offset-sm-2 .col-md-6 .offset-md-0
col-sm-6 .col-md-5 .col-lg-6
col-sm-6 .col-md-5 .offset-md-2 .col-lg-6 .offset-lg-0
<div class="container">
  <div class="row">
    <div class="col-sm-5 col-md-6">.col-sm-5 .col-md-6</div>
    <div class="col-sm-5 offset-sm-2 col-md-6 offset-md-0">.col-sm-5 .offset-sm-2 .col-md-6 .offset-md-0</div>
  </div>
  <div class="row">
    <div class="col-sm-6 col-md-5 col-lg-6">.col-sm-6 .col-md-5 .col-lg-6</div>
    <div class="col-sm-6 col-md-5 offset-md-2 col-lg-6 offset-lg-0">.col-sm-6 .col-md-5 .offset-md-2 .col-lg-6 .offset-lg-0</div>
  </div>
</div>

Margin utilitates

Motu ad flexbox in v4, marginibus utilitatibus uti potes ut columnas fraternas ab invicem cogant .me-auto.

.col-md-4
.col-md-4 .ms-auto
.col-md-3 .ms-md-auto
.col-md-3 .ms-md-auto
.col-auto .me-auto
.col-auto
<div class="container">
  <div class="row">
    <div class="col-md-4">.col-md-4</div>
    <div class="col-md-4 ms-auto">.col-md-4 .ms-auto</div>
  </div>
  <div class="row">
    <div class="col-md-3 ms-md-auto">.col-md-3 .ms-md-auto</div>
    <div class="col-md-3 ms-md-auto">.col-md-3 .ms-md-auto</div>
  </div>
  <div class="row">
    <div class="col-auto me-auto">.col-auto .me-auto</div>
    <div class="col-auto">.col-auto</div>
  </div>
</div>

Standalone columnae classes

Classes etiam .col-*extra tempus adhiberi possunt .rowlatitudinem specificam elementi dare. Quoties columnae classes usurpantur ut non directi filii ordinis, omittuntur pa- menta.

.col-3: latitudo 25%
.col-sm-9: latitudo LXXV% super sm breakpoint
<div class="col-3 bg-light p-3 border">
  .col-3: width of 25%
</div>
<div class="col-sm-9 bg-light p-3 border">
  .col-sm-9: width of 75% above sm breakpoint
</div>

Classes una cum utilitatibus adhiberi possunt ad imagines responsurum natandas. Fac involvere contentus in .clearfixvelamento ad purgandum supernatat si textus brevior est.

Placeholder Responsive floated image

A paragraph of placeholder text. Hic utimur ut usum clarificae classis ostendamus. Pauculas locutiones inanes hic addimus demonstrare quomodo columnae hic cum imagine fluitantis inter se occurrunt.

Ut videre potes paragraphos lepide circumvolvunt imaginem nantis. Nunc finge quomodo hoc in re aliqua actualia hic spectare, potius quam hunc textum taediosum locum tenentem qui sequitur et sequitur, sed nullas omnino notitias tangibiles insinuat. Spatium simpliciter sumit et debet non vere legi.

Et tamen hic es adhuc perseverans in legendo hunc textum locumtenentem, sperans aliquas res pervestigationes, vel aliquod ovum paschale absconditum contenti. Jocus, fortasse. Donec id nulla lorem.

<div class="clearfix">
  <img src="..." class="col-md-6 float-md-end mb-3 ms-md-3" alt="...">

  <p>
    A paragraph of placeholder text. We're using it here to show the use of the clearfix class. We're adding quite a few meaningless phrases here to demonstrate how the columns interact here with the floated image.
  </p>

  <p>
    As you can see the paragraphs gracefully wrap around the floated image. Now imagine how this would look with some actual content in here, rather than just this boring placeholder text that goes on and on, but actually conveys no tangible information at. It simply takes up space and should not really be read.
  </p>

  <p>
    And yet, here you are, still persevering in reading this placeholder text, hoping for some more insights, or some hidden easter egg of content. A joke, perhaps. Unfortunately, there's none of that here.
  </p>
</div>