By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,245 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,245 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
nj********@hotmail.com
http://www.nathansokalski.com/
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:uZ**************@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
nj********@hotmail.com
http://www.nathansokalski.com/

Nov 19 '05 #2

P: n/a
Use "AbsMiddle".

btw, are you using 1.1 or 2.0?
--
Cheers,
Gaurav Vaish
http://mastergaurav.blogspot.com
http://mastergaurav.org
------------------------

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.