Media queries are used to apply CSS styles depending on a devices general type (such as print vs. screen) or specific characteristics (such as browser viewport width).
@media (condition) { CSS rules }max-width: 576px - Mobile phonesmax-width: 768px - Tabletsmax-width: 992px - Small laptopsmax-width: 1200px - Large screensEdit the code below and click Run to see the result live.