79584654

Date: 2025-04-21 12:45:25
Score: 1
Natty:
Report link

Starting with Bootstrap 4, the '.col-xs-*' class is no longer used. For reference, see the official blog post:

Bootstrap 4 Alpha 6

Back in Bootstrap 3, .col-xs-* was how you handled layouts for extra small screens. But with Bootstrap 4 and up, things got simpler thanks to a mobile-first approach.

You don’t need a special class for extra small devices anymore. Just use .col-* without any breakpoint prefix—it automatically applies to screens smaller than 576px.

If you're working with different layouts for various screen sizes, you can still use classes like .col-sm-*, .col-md-*, and so on for small, medium, and larger devices. For extra small (XS) screens, just stick with .col-* and set the value you need.

For more details, refer to the Bootstrap 4 Grid documentation:

Grid system

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Olga S