{"id":78481,"date":"2023-02-17T13:29:33","date_gmt":"2023-02-17T13:29:33","guid":{"rendered":"\/tutorials\/?p=78481"},"modified":"2025-12-02T15:17:36","modified_gmt":"2025-12-02T15:17:36","slug":"css-breakpoints","status":"publish","type":"post","link":"\/ca\/tutorials\/css-breakpoints\/","title":{"rendered":"How to use CSS breakpoints for responsive design, most common media breakpoints + tips"},"content":{"rendered":"<p>CSS breakpoints are values that determine how a website looks on different screen sizes. When visitors&rsquo; devices reach their breakpoints, the website content responds and adjusts accordingly.&nbsp;<\/p><p>These breakpoints, together with CSS media queries, are responsible for a responsive website design. In short, they make your website look proportional when viewed on a different screen size.&nbsp;<\/p><p>In this article, we&rsquo;ll show you how to implement CSS breakpoints for your site. You will also get tips on how to use breakpoints for a responsive web design.&nbsp;<\/p><p>\n\n\n<div class=\"protip\"><div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                   What Is a CSS Breakpoint?\n                <\/p>\n            <\/div>\n            <p class=\"protip__content\"><br>\nA CSS breakpoint is a value that determines a website&rsquo;s size and layout across different screen sizes. It creates a responsive website design when implemented with a CSS media query. <\/p><\/div>\n\n\n\n<\/p><p>A breakpoint&rsquo;s value is set based on the user&rsquo;s device height or width. While it is typically shown in pixels, breakpoints can also use CSS units like <strong>em<\/strong>,<strong> rem<\/strong>, or <strong>percentages<\/strong>.&nbsp;<\/p><p>With breakpoints and media queries, you can define different conditions and adjust your site content based on them. For instance, you can show the navigation bar only on large devices.<\/p><p>To apply breakpoints and media queries, you can only use an external <a href=\"\/ca\/tutorials\/difference-between-inline-external-and-internal-css\/\">CSS type<\/a>. To do so, you must create and <a href=\"\/ca\/tutorials\/website\/how-to-link-a-stylesheet-css-file-to-your-html-file\/\">link a stylesheet to your site&rsquo;s HTML file<\/a>.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-set-css-breakpoints\">How to Set CSS Breakpoints<\/h2><p>There are two ways of setting CSS breakpoints &ndash; based on the device or site&rsquo;s content.&nbsp;<\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Suggested Reading                <\/p>\n            <\/div>\n            <p class=\"protip__content\"> Before proceeding, check out our  <a href=\"\/ca\/tutorials\/css-cheat-sheet\/\">CSS cheat sheet<\/a> if you are unfamiliar with the styling language.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-use-breakpoints-based-on-device\">How to Use Breakpoints Based on Device<\/h3><p>Breakpoints can use the device&rsquo;s width and length as the parameters, typically shown in the pixel values. Here&rsquo;s an example of them:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">        <div><pre><code class=\"mw-64 mw-22-md d-block language-css line-numbers\">\/* Portrait iPhone 6 to 8 *\/\n@media only screen\nand (min-width: 375px)\nand (max-width: 667px)\nand (-webkit-min-device-pixel-ratio: 2)\nand (orientation: portrait){\n...\n}<\/code><\/pre><\/div>\n         <\/pre><p>However, determining device-based breakpoints might be tricky since their screen resolutions vary. It is also time-consuming since developers must add CSS breakpoints every time a new device is released.<\/p><p>Instead of setting a breakpoint for specific devices, you can group them based on resolutions. Here&rsquo;s the code example:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/* Small devices (portrait tablets and large phones, 600px and up) *\/\n@media only screen and (min-width: 600px) {...}\n\/* Medium devices (landscape tablets, 768px and up) *\/\n@media only screen and (min-width: 768px) {...}\n\/* Extra large devices (large laptops and desktops, 1200px and up) *\/\n@media only screen and (min-width: 1200px) {...}<\/pre><p>While it&rsquo;s possible to set breakpoints only for popular devices, we don&rsquo;t recommend it since your target audience may use various devices.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-use-breakpoints-based-on-content\">How to Use Breakpoints Based on Content<\/h3><p>You can set your breakpoints based on your site&rsquo;s content. As a result, you won&rsquo;t need to add a new breakpoint whenever a device comes out, saving time and keeping your site code clean.&nbsp;<\/p><p>With this method, you add breakpoints on the positions where the content starts to look misaligned or distorted when rendered on a different screen size.&nbsp;<\/p><p>You can set the parameter in two ways &ndash; using a minimum width pixel value or range. For example, the following will run the CSS code for devices with a min screen width of <strong>720<\/strong> pixels:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">        <div><pre><code class=\"mw-64 mw-22-md d-block language-css line-numbers\">@media only screen (min-width: 720px){\n...\n}<\/code><\/pre><\/div>\n        <\/pre><p>Meanwhile, the following applies if the device width is between <strong>720<\/strong> and <strong>1280<\/strong> pixels:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">css]@media only screen and (min-width: 720px) and (max-width: 1280px){\n&hellip;\n}[\/css]<\/pre><h2 class=\"wp-block-heading\" id=\"h-how-to-use-min-width-or-max-width-css-breakpoints\">How to Use min-width or max-width CSS Breakpoints<\/h2><p>Additionally, you can set breakpoints using a specific value with <strong>min-width,<\/strong> <strong>max-width,<\/strong> or both to define a range. Each of them is ideal for a particular use case.<\/p><p>Use <strong>min-width <\/strong>breakpoints when developing a website with the mobile-first approach. It means you set the default CSS for the smaller screen and adjust it for larger devices.&nbsp;<\/p><p>Conversely, when developing for larger devices, use <strong>max-width<\/strong> breakpoints and rearrange your website for smaller screens. Use both only when you are particular about your site&rsquo;s appearance on a certain device.<\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro Tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\">In addition to screen adjustment, you can use breakpoint with other media queries like print and speech.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-media-query-breakpoints\">Media Query Breakpoints<\/h2><p>To set your media query breakpoints, determine what devices visitors use to render your website. They may use computers, tablets, or mobile phones.&nbsp;<\/p><p>The common breakpoints for these devices are based on their resolution. Some of the most popular ones are 1920&times;1080, 1366&times;768, and 360&times;640.&nbsp;<\/p><p>Alternatively, you may use different frameworks&rsquo; breakpoints. Since they are optimized for the mobile-first approach, use them as references when developing for larger-screen devices.&nbsp;<\/p><p>Here are a few examples of popular frameworks with their breakpoints:<\/p><ul class=\"wp-block-list\">\n<li><a href=\"\/ca\/tutorials\/what-is-bootstrap\/\"><strong>Bootstrap<\/strong><\/a><strong> <\/strong>&ndash; 576px, 768px, 992px, 1200px, and 1400px.<\/li>\n\n\n\n<li><a href=\"https:\/\/get.foundation\/\" target=\"_blank\" rel=\"noopener\"><strong>Foundation<\/strong><\/a><strong> <\/strong>&ndash; 640px, 1024px, and any size for smaller devices.<\/li>\n\n\n\n<li><a href=\"https:\/\/bulma.io\/\" target=\"_blank\" rel=\"noopener\"><strong>Bulma<\/strong><\/a> &ndash;&nbsp; 768px, 769px, 1024px, 1216px, and 1408px.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-tips-for-using-css-breakpoints-for-responsive-design\">Tips for Using CSS Breakpoints for Responsive Design<\/h2><p>Consider the following tips when using CSS breakpoints to ensure your website&rsquo;s responsiveness.<\/p><p><strong>Minimize HTML, CSS, and JavaScript<\/strong><\/p><p><a href=\"\/ca\/tutorials\/website\/improving-website-performance-minifying-css-html-and-javascript\/\">Minifying your site code<\/a> helps improve your site responsiveness by removing unnecessary characters.&nbsp;<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/CSS-code-minified-in-CSSNano.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1444\" height=\"589\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/CSS-code-minified-in-CSSNano.png\/w=1024,h=1024,fit=scale-down\" alt=\"CSS code minified in CSSNano\" class=\"wp-image-78484\"  sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/a><\/figure><\/div><p>Simpler code runs more efficiently, allowing your site to adjust its layout more quickly. It is especially beneficial if your site uses multiple breakpoints and CSS media queries.&nbsp;<\/p><p><strong>Prioritize Mobile Devices<\/strong><\/p><p>When <a href=\"\/ca\/tutorials\/how-to-design-a-website\/\">designing a website<\/a>, set your default styles for small devices and adjust them for bigger screens. It ensures your <a href=\"\/ca\/tutorials\/mobile-friendly-website\/\">website is mobile-friendly<\/a> and responsive across different devices.&nbsp;<\/p><p>Prioritizing mobile devices also helps simplify the development process since designing for smaller screens is more complicated.<\/p><p><strong>Simplify the Mobile View<\/strong><\/p><p>In addition to resizing, simplify your website for a mobile view. It helps improve your page&rsquo;s loading speed and usability across different platforms.<\/p><p>To optimize your website for mobile viewing, remove unnecessary content and rearrange its navigation. Use breakpoints to allow the site to hide and reposition those elements automatically.<\/p><p><strong>Name Your Ranges Sensibly<\/strong><\/p><p>Your breakpoints ranges should be descriptive and easy to understand. Ideally, the range should specify the device&rsquo;s type and orientation, like &ldquo;portrait iPhone X.&rdquo;&nbsp;<\/p><p>For device groups, use names that describe their screen sizes, such as &ldquo;medium landscape tablets&rdquo; or &ldquo;large portrait smartphones.&rdquo;&nbsp;<\/p><p><strong>Use DevTools to Enter Large Numbers on Larger Screens<\/strong><\/p><p>You may need to create a breakpoint for screens larger than your device. In that case, use Google DevTools&rsquo; <strong>Toggle Device Toolbar<\/strong> feature to simulate how the breakpoints look on different viewport sizes.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/Google-DevTool_s-Simulation-feature-location-in-Chrome.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"196\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/Google-DevTool_s-Simulation-feature-location-in-Chrome.png\/w=1024,h=1024,fit=scale-down\" alt=\"Google DevTool's Simulation feature location in Chrome\" class=\"wp-image-78485\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><\/div><p>To access it, open <a href=\"\/ca\/tutorials\/website\/how-to-inspect-and-change-style-using-google-chrome\/\">Google Chrome&rsquo;s inspect element<\/a> and find the phone and tablet icon. At the top, you will see dimension fields where you can enter a custom screen resolution.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/ca\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/The-custom-resolution-fields-in-Google-DevTool.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"367\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/The-custom-resolution-fields-in-Google-DevTool.png\/w=1024,h=1024,fit=scale-down\" alt=\"The custom resolution fields in Google DevTool\" class=\"wp-image-78486\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>CSS breakpoints determine a website&rsquo;s size and layout on different screen sizes. They work with CSS media queries to allow your site to adjust itself according to users&rsquo; devices.<\/p><p>You can set breakpoints based on the device&rsquo;s screen size or the website&rsquo;s content. We don&rsquo;t recommend the former since you must add more lines of code whenever new devices come out.&nbsp;<\/p><p>To set your breakpoint, define the target device&rsquo;s screen min and max width. Alternatively, use the ones that the web development framework provides, like bootstrap breakpoints.&nbsp;<\/p><p>When it comes to ensuring your website is fully responsive, don&rsquo;t forget to minify your site code, name your ranges sensibly, and use the mobile-first approach.<\/p><p>Besides setting CSS breakpoints right, remember to choose a suitable web hosting service to ensure your site is accessible and works fine.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/ca\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-css-breakpoints-faq\">CSS Breakpoints FAQ<\/h2><p>In this section, we&rsquo;ll answer some common questions about CSS breakpoints to help you understand them more.&nbsp;<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1676640801856\"><h3 class=\"schema-faq-question\">Can Breakpoints Use Pixels, Ems, or Percentages?<\/h3> <p class=\"schema-faq-answer\">Yes, you can use pixels, ems, and percentages. Min and max-width breakpoints also support different <a href=\"https:\/\/www.w3schools.com\/cssref\/pr_dim_max-width.php\" target=\"_blank\" rel=\"noopener\">property values<\/a> like <strong>cm<\/strong>, <strong>mm<\/strong>, and <strong>pt<\/strong>.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1676640810313\"><h3 class=\"schema-faq-question\">Which CSS Unit Is Best for Responsive Design?<\/h3> <p class=\"schema-faq-answer\">Relative units like percentages are ideal for responsive design as they can adjust based on the parent element.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1676640820347\"><h3 class=\"schema-faq-question\">Which CSS Breakpoints Should You Use With SASS?<\/h3> <p class=\"schema-faq-answer\">With SASS and SCSS, use the <strong>@mixin<\/strong> breakpoint. It allows you to create more declarative breakpoints that are easier to reuse throughout your website.&nbsp;<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>CSS breakpoints are values that determine how a website looks on different screen sizes. When visitors&rsquo; devices reach their breakpoints, the website content responds and adjusts accordingly.&nbsp; These breakpoints, together with CSS media queries, are responsible for a responsive website design. In short, they make your website look proportional when viewed on a different screen [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/css-breakpoints\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":139429,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Use CSS Breakpoints for Responsive Design + Tips","rank_math_description":"CSS breakpoints are pixel values that a developer can define CSS. Learn how to set the most common breakpoints + useful tips in this article.","rank_math_focus_keyword":"css breakpoints","footnotes":""},"categories":[22656,22658],"tags":[],"class_list":["post-78481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","category-website-development"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/css-breakpoints\/","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/breakpoints-css\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-use-css-breakpoints-for-responsive-design-most-common-media-breakpoints-tips\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-use-css-breakpoints-for-responsive-design-most-common-media-breakpoints-tips\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/css-breakpoints\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/css-breakpoints\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/css-breakpoints\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/css-breakpoints\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/css-breakpoints\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/breakpoints-css\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/78481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=78481"}],"version-history":[{"count":11,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/78481\/revisions"}],"predecessor-version":[{"id":137953,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/78481\/revisions\/137953"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media\/139429"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=78481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=78481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=78481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}