0 out of 1 rated this helpful - Rate this topic

ruby-overhang property

Gets or sets a value that indicates whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.

CSS3 Ruby Module, Section 4.3

Syntax

ruby-overhang: auto | whitespace | none

Property values

A variable of type String that specifies or receives one of the following values:

auto

Default. Ruby text overhangs any other text adjacent to the base text.

whitespace

Ruby text overhangs only white-space characters.

none

Ruby text overhangs only text adjacent to its base.

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

The ruby-overhang property specifies the overhang of the ruby text defined by the rt object, and is set on the ruby object.

Examples

This example uses the ruby-overhang attribute and the ruby-overhang property to set the overhang of the ruby text. It uses an inline style sheet to set the ruby-overhang attribute to none.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/rubyoverhang.htm


<RUBY ID=oRuby STYLE = "ruby-overhang: none">
Ruby base.
<RT>Ruby text.
</RUBY>
<INPUT
TYPE=button VALUE="Whitespace"
onclick="oRuby.style.rubyOverhang='whitespace';"
>

See also

CSSStyleDeclaration
currentStyle
runtimeStyle
style
Reference
ruby-align
ruby-position

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.