--- title: '-moz-orient' slug: Web/CSS/-moz-orient translation_of: Web/CSS/-moz-orient ---
{{CSSRef}}{{Non-standard_header}}

-moz-orient CSS властивість, що задає орієнтацію обраного елемента.

{{cssinfo}}

Синтаксис

{{csssyntax}}

Значення

inline
The element is rendered in the same direction as the axis of the text: horizontally for horizontal writing modes, vertically for vertical writing modes.
block
The element is rendered orthogonally to the axis of the text: vertically for horizontal writing modes, horizontal for vertical writing modes.
horizontal
The element is rendered horizontally.
vertical
The element is rendered vertically.

Приклади

HTML

<p>
  The following progress meter
  is horizontal (the default):
</p>
<progress max="100" value="75"></progress>

<p>
 The following progress meter
 is vertical:
</p>
<progress class="vert" max="100" value="75"></progress>

CSS

.vert {
  -moz-orient: vertical;
  width: 16px;
  height: 150px;
}

Результат

{{EmbedLiveSample("Examples","200","360")}}

Специфікації

Though submitted to the W3C, with positive initial feedback, this property is not yet part of any specification; currently, this is a Mozilla-specific extension (that is, -moz-orient).

Браузерна сумісність

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatNo}} {{CompatGeckoDesktop("6.0")}}{{property_prefix("-moz")}}[1] {{CompatNo}} {{CompatNo}} {{CompatNo}}
auto value {{CompatNo}} {{CompatGeckoDesktop("21.0")}}[2]
{{CompatNo}}{{CompatGeckoDesktop(40)}}
{{CompatNo}} {{CompatNo}} {{CompatNo}}
inline and block values {{CompatNo}} {{CompatGeckoDesktop(40)}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatNo}} {{CompatGeckoMobile("6.0")}}{{property_prefix("-moz")}}[1] {{CompatNo}} {{CompatNo}} {{CompatNo}}
auto value {{CompatNo}} {{CompatGeckoMobile("21.0")}}[2]
{{CompatNo}}{{CompatGeckoDesktop(40)}}
{{CompatNo}} {{CompatNo}} {{CompatNo}}
inline and block values {{CompatNo}} {{CompatGeckoMobile(40)}} {{CompatNo}} {{CompatNo}} {{CompatNo}}

[1] In Gecko 6.0 {{geckoRelease("6.0")}}, there was a bug that causes vertical {{HTMLElement("progress")}} elements to render with the dimensions of a horizontal bar. This is fixed in Gecko 7.0 {{geckoRelease("7.0")}}.

[2] The auto value was equivalent to horizontal.

Дивитися також