{"id":14047,"date":"2011-09-05T20:41:56","date_gmt":"2011-09-06T03:41:56","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14047"},"modified":"2021-03-29T08:10:00","modified_gmt":"2021-03-29T15:10:00","slug":"direction","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/d\/direction\/","title":{"rendered":"direction"},"content":{"rendered":"\n

The direction<\/code> property in CSS sets the direction of of content flow within a block-level element. This applies to text, inline, and inline-block elements. It also sets the default alignment of text and the direction that table cells flow within a table row.<\/p>\n\n\n\n

.main-content {\n  direction: rtl;  \/* Right to Left *\/\n}<\/code><\/pre>\n\n\n\n

The valid values are:<\/p>\n\n\n\n