{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-logical-properties-1ecba1392297","title":"Use CSS Logical Properties for RTL and i18n Support","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-logical-properties-1ecba1392297\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: logical-properties\ndescription: \"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.\"\nmetadata:\n  category: css\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/css\/logical-properties\n---\n\n# Use CSS logical properties for i18n and RTL support\n\nPhysical 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.\n\n## Quick Reference\n\n- Logical properties adapt to writing direction \u2014 margin-inline-start is left in LTR, right in RTL\n- Replace left\/right margin and padding with inline-start\/inline-end equivalents\n- Replace top\/bottom with block-start\/block-end equivalents\n- Logical properties also work correctly for vertical writing modes\n\n## Check\n\nFind 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.\n\n## Fix\n\nConvert physical direction properties to their CSS logical property equivalents for RTL and internationalization support.\n\n## Explain\n\nExplain CSS logical properties, the difference between physical and logical directions, and how they enable RTL language support.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/css\/logical-properties\n","use_cases":["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"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/logical-properties\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T17:00:50.000000Z","updated_at":"2026-11-23T04:55:39.000000Z","seo_title":"Use CSS Logical Properties for RTL and i18n Support","seo_description":"Learn how to use CSS logical properties for right-to-left language support and internationalization. Improve layout adaptability with logical properties.","seo_keywords":["CSS logical properties for RTL","Internationalization with CSS","RTL language support in CSS","CSS logical properties for i18n","Responsive layout with CSS"]}}