Меню
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON PHP КАК СДЕЛАТЬ
     ❯   

CSS Справочники


CSS Свойства





text-orientation



Example

Set the text orientation for different <div> elements:

div.a {
  text-orientation: mixed;
}

div.b {
  text-orientation: upright;
}
Try it Yourself »

Definition text-orientation

Подработка: Перевод страницы

The text-orientation property specifies the orientation of characters.

Note: Works only when writing-mode is set to vertical.

Show demo ❯

Default value: mixed
Inherited: yes
Animatable: no. Read about animatable
Version: CSS3
JavaScript syntax: object.style.textOrientation="upright" Try it

Browser Support text-orientation

The numbers in the table specify the first browser version that fully supports the property.

Property
text-orientation 48.0 79.0 41.0 14.0 35.0
sideways
(property value)
Not supported Not supported 44.0 Not supported Not supported


CSS Syntax text-orientation

text-orientation: mixed|upright|sideways|sideways-right|use-glyph-orientation|initial|inherit;

Property Values text-orientation

Value Description Demo
mixed Deafult value. Characters are rotated 90 degrees clockwise. Demo ❯
upright Characters are not rotated, but standing upright. Demo ❯
sideways Only supported in Firefox. Characters are orientated the same as the text lines are oriented with writing-mode vertical, 90 degrees clockwise.
sideways-right Equal to property value sideways. Kept for compatibility purposes.
use-glyph-orientation For use in SVG elements, so that text inherits deprecated SVG properties glyph-orientation-vertical and glyph-orientation-horizontal.
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

More Examples text-orientation

Example

The text-orientation property can be used to change orientation in table headers:

th {
    writing-mode: vertical-lr;
    text-orientation: upright;
}
Try it Yourself »

Related Pages text-orientation

CSS writing-mode property: CSS Writing Mode property



×

Связаться с отделом продаж

Если вы хотите использовать услуги schoolsw3 как образовательное учреждение, команда или предприятие, отправьте нам электронное письмо:
sales@schoolsw3.com

Сообщить об ошибке

Если вы хотите сообщить об ошибке или внести предложение, отправьте нам электронное письмо:
help@schoolsw3.com

Schoolsw3 оптимизирован для обучения и подготовки. Примеры могут быть упрощены для улучшения чтения и обучения. Учебники, ссылки и примеры постоянно проверяются, чтобы избежать ошибок, но мы не можем гарантировать полную правильность всего контента.
При использовании Schoolsw3 вы соглашаетесь прочитать и принять наши условия использования,
политику использования файлов cookie и конфиденциальности.

Авторское право 1999- © Copyright. Все права защищены. Schoolsw3 работает на SW3.CSS.