Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/docs/text-align.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,18 @@ Use the `text-justify` utility to justify the text of an element:
### Responsive design

<ResponsiveDesign element="p" property="text-align" defaultClass="text-left" featuredClass="text-center" />

### Using logical properties

Use the `rtl` utility to conditionally add styles in right-to-left and left-to-right when building multi-directional layouts:

```html
<!-- [!code classes:rtl:text-right] -->
<p class="text-left rtl:text-right">So I started to walk into the water...</p>
```

Alternatively, you can use the `text-start` and `text-end` logical utilities, to align the text either the left or right side based on the writing direction:

```html
<p class="text-start">So I started to walk into the water...</p>
```