<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/responsive-design-css-tips-osgsrngb8" -->

---
title: Responsive Design CSS tips | daily.dev
description: Using em/percentage/rem instead of px, so that the text, images size adjust with respect to the device width. Flex-wrap - Using flexbox to align your HTML...
canonical: https://daily.dev/posts/responsive-design-css-tips-osgsrngb8
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Responsive Design CSS tips | daily.dev
og:description: Using em/percentage/rem instead of px, so that the text, images size adjust with respect to the device width. Flex-wrap - Using flexbox to align your HTML...
og:url: https://daily.dev/posts/responsive-design-css-tips-osgsrngb8
og:image: https://api.daily.dev/og/posts/OsgSRNgB8.png
og:image:alt: Responsive Design CSS tips
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Responsive Design CSS tips

**[DEV](https://daily.dev/sources/devto)** · [@fidalmathew](https://daily.dev/fidalmathew) · 1 min read · 135 upvotes · 12 comments

## Summary

Using em/percentage/rem instead of px, so that the text, images size adjust with respect to the device width. Flex-wrap - Using flexbox to align your HTML elements such as <div> etc. Media query - Media query should be used to set width and height according to the breakpoints.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/fidalmathew/responsive-design-css-tips-nhj>

## Community discussion

Top comments from developers on daily.dev.

**@pedroluca** · 1 upvotes

> Really nice tips

**@suco** · 0 upvotes

> very important tips

**@angelik323** · 0 upvotes

> great

**@rfornal** · 0 upvotes

> Reasonable tips ... great information.

**@anarkhya** · 0 upvotes

> didn't know place-items shorthand property

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/responsive-design-css-tips-osgsrngb8)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Responsive Design CSS tips","url":"https://daily.dev/posts/responsive-design-css-tips-osgsrngb8","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/responsive-design-css-tips-osgsrngb8"},"datePublished":"2021-11-20T18:37:04.700Z","dateModified":"2021-11-21T15:50:21.663Z","description":"Using em/percentage/rem instead of px, so that the text, images size adjust with respect to the device width. Flex-wrap - Using flexbox to align your HTML...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/500858ac8939e92ae180fa497d354e43","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/500858ac8939e92ae180fa497d354e43","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Fidal Mathew","url":"https://daily.dev/fidalmathew","image":"https://media.daily.dev/image/upload/f_auto/v1637466439/avatars/yQxAY4oS4AZmzn2OWaaef","description":"Student | Web developer, learning to become a MERN stack developer | Love to connect with other developers","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":420}},"commentCount":12,"discussionUrl":"https://daily.dev/posts/responsive-design-css-tips-osgsrngb8","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":135},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":12}],"keywords":"css","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"Responsive Design CSS tips"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/responsive-design-css-tips-osgsrngb8","comment":[{"@type":"Comment","text":"Really nice tips","datePublished":"2021-11-20T21:05:00.217Z","url":"https://daily.dev/posts/OsgSRNgB8#c-CbpTZS8zS","author":{"@type":"Person","name":"Pedro Luca Prates","url":"https://daily.dev/pedroluca","image":"https://media.daily.dev/image/upload/s--M1Dg2_Aj--/f_auto/v1739553216/avatars/avatar_2bzgKd1w7N0tfAcjU1Tcl"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"very important tips","datePublished":"2022-02-10T16:51:15.959Z","url":"https://daily.dev/posts/OsgSRNgB8#c-HHpbsWdEo","author":{"@type":"Person","name":"lucas de frança","url":"https://daily.dev/suco","image":"https://lh3.googleusercontent.com/a-/AOh14Gg7r75Fe5vdQ8mpTIulbymN-QsZs123-3wxa9t9=s100"}},{"@type":"Comment","text":"great","datePublished":"2021-12-06T16:22:15.804Z","url":"https://daily.dev/posts/OsgSRNgB8#c-ICuvNzhzk","author":{"@type":"Person","name":"Angélica María Loaiza Loaiza","url":"https://daily.dev/angelik323","image":"https://avatars.githubusercontent.com/u/21269129?v=4"}},{"@type":"Comment","text":"Reasonable tips … great information.","datePublished":"2021-11-22T14:37:23.562Z","url":"https://daily.dev/posts/OsgSRNgB8#c-qH0SK4WeF","author":{"@type":"Person","name":"Bob Fornal","url":"https://daily.dev/rfornal","image":"https://lh3.googleusercontent.com/a-/AOh14Gj2w_EqKb5Jlbize6-gm6oXVU1CV3KM2mEuTrAhCQ=s100"}},{"@type":"Comment","text":"didn’t know place-items shorthand property","datePublished":"2021-11-21T12:22:10.321Z","dateModified":"2021-11-21T12:22:43.491Z","url":"https://daily.dev/posts/OsgSRNgB8#c-CaWn5fh0l","author":{"@type":"Person","name":"greg","url":"https://daily.dev/anarkhya","image":"https://avatars.githubusercontent.com/u/87575874?v=4"}}]}
```

