XML-Technologien / MathML / Presentation elements / mpadded

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

Syntax

<mpadded>(child)*</mpadded>

Description

The mpadded element is used to make precise adjustments to the position of an expression relative to its surrounding elements. It changes the position of the bounding box used for rendering its contents by an amount determined by its attributes.

Attributes

This element accepts the four attributes shown in the following table.

Table: Attributes of mpadded.

Attribute

Values

Default

width

[+ | -] number | (%[pseudo-unit] | pseudo-unit | h-unit | namedspace)

same as content

lspace

[+ | -] number | (%[pseudo-unit] | pseudo-unit | h-unit)

same as the element's content

height

[+ | -] number | (%[pseudo-unit] | pseudo-unit | h-unit)

same as the element's content

depth

[+ | -] number | (%[pseudo-unit] | pseudo-unit | h-unit)

same as the element's content

These attributes have the following meaning:

  • width: specifies the horizontal width of the bounding box.

  • lspace: specifies the amount of blank space inserted before the left edge of the bounding box.

  • height: specifies the vertical distance between the baseline and the top of the bounding box.

  • depth: specifies the vertical distance between the baseline and the bottom of the bounding box.

   

 

 

 

 

nach oben