Home All Groups Group Topic Archive Search About

Alignment of a System.Web.UI.WebControls.Image object

Author
8 Jun 2005 6:51 AM
Nathan Sokalski
When using a System.Web.UI.WebControls.Image object, how do I control both
vertical and horizontal alignment? Both directions are controlled using the
ImageAlign property, which prevents setting both a vertical and horizontal
direction. Why isn't there something like a VerticalAlign and
HorizontalAlign like the System.Web.UI.WebControls.TableCell object? Thanks.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Author
8 Jun 2005 8:47 AM
MasterGaurav
Use "AbsMiddle".

btw, are you using 1.1 or 2.0?


--
Cheers,
Gaurav Vaish
http://mastergaurav.blogspot.com
http://mastergaurav.org
------------------------
Author
8 Jun 2005 9:50 AM
Eliyahu Goldin
Nathan,

The ImageAlign property aligns the image on the PAGE. If you want precise
alignment with other controls, put your image and the other controls to an
html table and set alignment options for the table cells.

Eliyahu

Show quoteHide quote
"Nathan Sokalski" <njsokal***@hotmail.com> wrote in message
news:uZdv9Z$aFHA.3040@TK2MSFTNGP14.phx.gbl...
> When using a System.Web.UI.WebControls.Image object, how do I control both
> vertical and horizontal alignment? Both directions are controlled using
the
> ImageAlign property, which prevents setting both a vertical and horizontal
> direction. Why isn't there something like a VerticalAlign and
> HorizontalAlign like the System.Web.UI.WebControls.TableCell object?
Thanks.
> --
> Nathan Sokalski
> njsokal***@hotmail.com
> http://www.nathansokalski.com/
>
>