Im trying to right align an asp:panel on my xml page,
HorizontalAlign="Right" seems to have no affect,
please advise?
Ta
4 Replies - 584 Views - Last Post: 15 January 2013 - 09:05 AM
#1
Align a panel to the right, HorizontalAlign=“Right” not working
Posted 13 January 2013 - 04:14 PM
Replies To: Align a panel to the right, HorizontalAlign=“Right” not working
#2
Re: Align a panel to the right, HorizontalAlign=“Right” not working
Posted 13 January 2013 - 04:15 PM
Moved to ASP.NET.
Please post your code.
Please post your code.
#3
Re: Align a panel to the right, HorizontalAlign=“Right” not working
Posted 13 January 2013 - 10:04 PM
CSS has a Float method and the options are Right,Left, or None.
CSS file:
ASPX:
CSS file:
.FloatRight{float:right;}
ASPX:
<asp:Panel CssClass="FloatRight" .../>
#4
Re: Align a panel to the right, HorizontalAlign=“Right” not working
Posted 14 January 2013 - 02:57 AM
Thats great thank you
#5
Re: Align a panel to the right, HorizontalAlign=“Right” not working
Posted 15 January 2013 - 09:05 AM
HorizontalAlign affects the alignment of a control's contents, not the alignment of the control itself. If you set that attribute on the panel's parent control, it might have affected the panel, but there are a lot of other factors that will affect that as well. _HAWK_'s solution is the right way to do it.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote








|