Coding⏱️ 2 min read📅 2026-05-31

How to Fix: `col-xs-*` not working in Bootstrap 4

Bootstrap 4 col-xs-* not working

Quick Answer: {"fix": "Use col-sm-* or col-xm-* instead, as col-xs-* is deprecated in Bootstrap 4."}

In Bootstrap 4, the `col-xs-*` classes are not compatible with the new grid system. This is because the `xs` breakpoint has been removed in favor of using `sm`, `md`, and `lg` breakpoints.

💡 Why You Are Getting This Error

  • The `xs` breakpoint was used to define the extra small screen size, but it has been deprecated in favor of using the `sm` breakpoint for small screens.

🛠️ Step-by-Step Verified Fixes

Method 1: Update to Bootstrap 4 Compatible Classes

  1. Step 1: Replace `col-xs-*` with `col-sm-*`, `col-md-*`, or `col-lg-*

Method 2: Use Grid System

  1. Step 1: Use the grid system to define your column widths. For example, `col-md-12` will take up the full width of the medium breakpoint.

✨ Wrapping Up

By following these steps, you should be able to resolve the issue with `col-xs-*` not working in Bootstrap 4.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions