# How do Bootstrap col-(xs/sm/md/lg/xl) classes work?

**URL:** <https://forum.freecodecamp.org/t/how-do-bootstrap-col-xs-sm-md-lg-xl-classes-work/404516>\
**Category:** General\
**Created:** [June 16, 2020, 9:21pm UTC](https://forum.freecodecamp.org/t/how-do-bootstrap-col-xs-sm-md-lg-xl-classes-work/404516 "2020-06-16T21:21:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![konstantin.krumin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/konstantin.krumin/32/125390_2.png) [@konstantin.krumin](https://forum.freecodecamp.org/u/konstantin.krumin)\
**Post date:** [June 16, 2020, 9:21pm UTC](https://forum.freecodecamp.org/t/how-do-bootstrap-col-xs-sm-md-lg-xl-classes-work/404516/1 "2020-06-16T21:21:32Z")

</div>

If, for example, I have 3 elements nested within `<div class="row">` and I nest each of them inside separate `<div class="col-xs-4"</div>` would it have any impact on how those elements are showed on large screens (since we only specified the grid for small screens)?

As I understood, if we have only col-xs-\* indicated the following grid would be applied for any screen size, but if we have explicitly indicated col-xs-_, col-md-_, col-xl-\* for those elements it will display them differently if each of those values are different, would it be correct?

---

<div class="post-metadata">

**Author:** ![slay.py](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@slay.py](https://forum.freecodecamp.org/u/slay.py)\
**Post date:** [June 16, 2020, 9:40pm UTC](https://forum.freecodecamp.org/t/how-do-bootstrap-col-xs-sm-md-lg-xl-classes-work/404516/2 "2020-06-16T21:40:10Z")

</div>

Hello @konstantin.krumin,  
yes you are correct!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:49pm UTC](https://forum.freecodecamp.org/t/how-do-bootstrap-col-xs-sm-md-lg-xl-classes-work/404516/3 "2021-06-01T18:49:49Z")

</div>

Closed on June 1, 2021, 6:49pm UTC


