<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/day-2-logical-properties-4sw2onqve" -->

---
title: Day 2: logical properties | daily.dev
description: CSS logical properties offer a way to define layout directions using start/end rather than physical left/right/top/bottom values. This makes styles...
canonical: https://daily.dev/posts/day-2-logical-properties-4sw2onqve
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Day 2: logical properties | daily.dev
og:description: CSS logical properties offer a way to define layout directions using start/end rather than physical left/right/top/bottom values. This makes styles...
og:url: https://daily.dev/posts/day-2-logical-properties-4sw2onqve
og:image: https://api.daily.dev/og/posts/4sW2onQvE.png
og:image:alt: Day 2: logical properties
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.

# Day 2: logical properties

**[Manuel Matuzović](https://daily.dev/sources/matuzo)** · 2 min read · 0 upvotes · 0 comments

## Summary

CSS logical properties offer a way to define layout directions using start/end rather than physical left/right/top/bottom values. This makes styles automatically adapt to different writing modes and reading directions (like right-to-left languages) without extra overrides. The post demonstrates the difference between physical properties like `margin-right` and their logical equivalents like `margin-inline-end`, showing how the latter correctly adjusts when `dir="rtl"` is applied.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.matuzo.at/blog/2022/100daysof-day2>

---

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

[View this post on daily.dev](https://daily.dev/posts/day-2-logical-properties-4sw2onqve)

```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":"Day 2: logical properties","url":"https://daily.dev/posts/day-2-logical-properties-4sw2onqve","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/day-2-logical-properties-4sw2onqve"},"datePublished":"2026-06-22T14:42:25.153Z","dateModified":"2026-06-22T14:43:55.191Z","description":"CSS logical properties offer a way to define layout directions using start/end rather than physical left/right/top/bottom values. This makes styles...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cf6e3af58c3686c7c8bfec9359856f66?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cf6e3af58c3686c7c8bfec9359856f66?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Manuel Matuzović","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":"Organization","name":"Manuel Matuzović","logo":"https://media.daily.dev/image/upload/s--EstFG5yE--/f_auto,q_auto/v1782139307/logos/matuzo","url":"https://daily.dev/sources/matuzo"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/day-2-logical-properties-4sw2onqve","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,css","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Manuel Matuzović","item":"https://daily.dev/sources/matuzo"},{"@type":"ListItem","position":3,"name":"Day 2: logical properties"}]}
```

