From the course: CSS Toolkit: Tips and Techniques for Layout and Styling
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Changing writing mode - CSS Tutorial
From the course: CSS Toolkit: Tips and Techniques for Layout and Styling
Changing writing mode
- [Instructor] CSS writing modes allow you to control whether text is displayed horizontally or vertically, and in what order the lines of text appear. This feature is essential for properly displaying vertical and vertical reverse languages, and can also be used for creative typography effects. In CSS, we set the writing mode property to define the text direction. And in this example, I've set this block quote to a writing mode horizontal-tb. And when applied, absolutely nothing changes in the browser for left-to-right scripts like this one because content already flows horizontally from left to right, with each new line positioned below the previous line. This is the default for most European languages and also the default for most browsers. And the same thing applies here. If we change this to a right-to-left script, the text flows from right to left, but new lines still appear below the previous ones. Let me reset this demo here, and now let's go back to our block quote. And let's…
Contents
-
-
-
-
The vw unit and the classic scrollbar problem4m 41s
-
(Locked)
Consistent sizing with box-sizing: border-box2m 23s
-
(Locked)
Using logical box properties vs. top, right, bottom, left4m 9s
-
(Locked)
Changing writing mode3m 51s
-
(Locked)
Align elements horizontally and vertically in any container4m 32s
-
(Locked)
Centering psuedo-elements with absolute positioning4m 11s
-
(Locked)
Maintaining aspect ratio in containers and images2m 32s
-
(Locked)
Using float and clear in modern CSS2m 27s
-
(Locked)
Wrap text around custom shapes with shape-outside2m 23s
-
-
-
-
-