# Use CSS Logical Properties for RTL and i18n Support

Convert physical CSS properties like margin-left and padding-right to logical equivalents such as margin-inline-start and padding-inline-end to ensure layouts adapt automatically to right-to-left languages and internationalization.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-logical-properties-1ecba1392297

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-logical-properties-1ecba1392297

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-logical-properties-1ecba1392297.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-logical-properties-1ecba1392297/download

**Category:** Software & Development

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/logical-properties/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-23

**Created at:** 2026-11-22T17:00:50.000000Z

**Updated at:** 2026-11-23T04:55:39.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before applying logical properties, ensure the document direction (dir) is set correctly in HTML elements. The first deliverable is a stylesheet with logical properties applied, typically in CSS format.

### When to use it

- Supporting Arabic, Hebrew, or Persian languages in a web application
- Creating responsive layouts that adapt to different writing directions
- Ensuring consistent styling across different languages and screen orientations

## Skill instructions

---
name: logical-properties
description: "Use when reviewing stylesheets, component styles, and responsive behavior related to Use CSS logical properties for i18n and RTL support. Check the rendered layout across breakpoints and interaction states before proposing a fix."
metadata:
  category: css
  priority: medium
  difficulty: intermediate
  estimatedTime: "15"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/css/logical-properties
---

# Use CSS logical properties for i18n and RTL support

Physical CSS properties (margin-left, padding-right) are hardcoded to screen directions. In right-to-left languages (Arabic, Hebrew, Persian), what should be margin-left becomes margin-right. Without logical properties, supporting RTL requires maintaining duplicate stylesheets or complex overrides with [dir=rtl] selectors. Logical properties handle this automatically.

## Quick Reference

- Logical properties adapt to writing direction — margin-inline-start is left in LTR, right in RTL
- Replace left/right margin and padding with inline-start/inline-end equivalents
- Replace top/bottom with block-start/block-end equivalents
- Logical properties also work correctly for vertical writing modes

## Check

Find all uses of margin-left, margin-right, padding-left, padding-right, border-left, border-right, left, right (as positioning) that should be converted to logical equivalents.

## Fix

Convert physical direction properties to their CSS logical property equivalents for RTL and internationalization support.

## Explain

Explain CSS logical properties, the difference between physical and logical directions, and how they enable RTL language support.

## Code Review

Review stylesheets, component styles, and responsive states related to Use CSS logical properties for i18n and RTL support. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/css/logical-properties

