HtmlImage.Align Property
Assembly: System.Web (in system.web.dll)
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.
| Value | Description |
|---|---|
| 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 HtmlImage control inside paragraph tags that contain the align attribute set to "center" (<p align= "center">). |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
HtmlImage ClassHtmlImage Members
System.Web.UI.HtmlControls Namespace
Note