Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
baselineShift
top
Collapse the table of content
Expand the table of content

baselineShift property

Sets or retrieves a value that indicates how the dominant baseline should be repositioned relative to the dominant baseline of the parent text content element.

Scalable Vector Graphics: Text, Section 10.9.2Internet Explorer 9

 

Syntax

HRESULT value = object.put_baselineShift( v);HRESULT value = object.get_baselineShift(* p);

Property values

Type: VARIANT

One of the values in the Property Values section.

String format

baseline | sub | super | <percentage> | <length>

CSS information

Applies To‘tspan’, ‘tref’, ‘altGlyph’, ‘textPath’ elements
Mediavisual
Inheritedno
Initial Valuebaseline

Standards information

Remarks

The IHTMLCSSStyleDeclaration::baselineShift property allows repositioning of the dominant baseline relative to the dominant baseline of the parent text content element. The shifted object might be a subscript or superscript. Within the shifted object, the whole baseline table is offset; not just a single baseline. The amount of the shift is determined by one of the following:

  • the parent text content element
  • the subscript or superscript offset from the nominal font of the parent text content element
  • the percent of the line-height of the parent text content element
  • an absolute value.

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLCSSStyleDeclaration::dominantBaseline

 

 

Community Additions

ADD
Show:
© 2015 Microsoft