System.Web.UI.HtmlControls.HtmlImage.Align Property

Gets or sets the alignment of the image relative to other Web page elements.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
public string Align { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to specify the alignment of the image with respect to other elements on the Web page.

The following table represents the possible values.

left

The image is aligned on the left side of the Web page.

center

The image is aligned in the center of the Web page.

right

The image is aligned on the right side of the Web page.

top

Other elements in the Web page are aligned with the top edge of the image.

middle

Other elements in the Web page are aligned with the middle of the image.

bottom

Other elements in the Web page are aligned with the bottom edge of the image.

Note:

The center value might not work on all browsers. To center an image, wrap the System.Web.UI.HtmlControls.HtmlImage control inside paragraph tags that contain the align attribute set to "center" (<p align= "center">).

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0