From 3bb9d748307634ef70da82ce744b7e6dec282883 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Jan 2026 15:35:10 +0100 Subject: [PATCH] chore: sync content to repo (#9545) Co-authored-by: kamranahmedse <4921183+kamranahmedse@users.noreply.github.com> --- .../css/content/direction@ZyqKZMIkQ22ysFqmhL3ZN.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/data/roadmaps/css/content/direction@ZyqKZMIkQ22ysFqmhL3ZN.md b/src/data/roadmaps/css/content/direction@ZyqKZMIkQ22ysFqmhL3ZN.md index 7b69439e4..4a1d12c86 100644 --- a/src/data/roadmaps/css/content/direction@ZyqKZMIkQ22ysFqmhL3ZN.md +++ b/src/data/roadmaps/css/content/direction@ZyqKZMIkQ22ysFqmhL3ZN.md @@ -1,8 +1,10 @@ # Direction -Direction in CSS controls the text direction of an element. It specifies whether the text should flow from left to right (LTR) or right to left (RTL). This property is particularly useful for languages like Arabic or Hebrew, which are written from right to left, ensuring proper text rendering and layout. +The `direction` property in CSS sets the text direction of block-level elements, influencing how text, table columns, and inline-level boxes flow. While `direction` can be used to switch between left-to-right (LTR) and right-to-left (RTL) layouts, it's generally better to use the HTML `dir` global attribute. The `dir` attribute semantically indicates the document's or element's text direction, providing better accessibility and separation of concerns compared to styling direction with CSS. Visit the following resources to learn more: -- [@article@Direction](https://developer.mozilla.org/en-US/docs/Web/CSS/direction) -- [@video@CSS how to: text direction](https://www.youtube.com/watch?v=SEX09kE5KmQ) \ No newline at end of file +- [@article@CSS Direction](https://developer.mozilla.org/en-US/docs/Web/CSS/direction) +- [@article@HTML dir global attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/dir) +- [@video@CSS for beginners 60: direction property](https://www.youtube.com/watch?v=LM0yIWmP62Q) +- [@video@HTML Global Attributes - dir Attribute](https://www.youtube.com/watch?v=6hqHM7Ez_Xg) \ No newline at end of file