← All tools

CSS Logical Properties

Convert physical CSS declarations and directional values to their logical equivalents from a horizontal LTR source.

css-logical-propertiesLOCAL WORKSPACE

Enabling local controls…

Settings

Uses horizontal LTR as the source mapping. Keeps shorthands and custom properties and converts single directional keywords of text-align, float and clear. Pasted CSS is never applied here.

Results

4 declarations converted

CSS

.card{margin-inline-start:16px;margin-block-end:24px;padding-inline-end:12px;text-align:start}
Download CSS

How to use this tool

Choose a preset or edit the controls. Copy the result or download it when it is ready.

When not to use it

Mixed physical and logical declarations, shorthand semantics and writing-mode overrides need manual review.