Using media queries in a single file, we can support multiple devices with different screen sizes.
Bootstrap doesn’t automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:
- Use the compiled responsive version, bootstrap-responsive.css
- Add @import "responsive.less" and recompile Bootstrap
- Modify and recompile responsive.less as a separate file
- Set up different styles in groups to show or hide contents by devices
// Landscape phones and down @media (max-width: 480px) { ... } // Landscape phone to portrait tablet @media (max-width: 767px) { ... } // Portrait tablet to landscape and desktop @media (min-width: 768px) and (max-width: 979px) { ... } // Large desktop @media (min-width: 1200px) { ... }