4 Replies - 1564 Views - Last Post: 15 January 2013 - 09:05 AM Rate Topic: -----

#1 Xna4life  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 78
  • Joined: 21-February 12

Align a panel to the right, HorizontalAlign=“Right” not working

Posted 13 January 2013 - 04:14 PM

Im trying to right align an asp:panel on my xml page,
HorizontalAlign="Right" seems to have no affect,

please advise?
Ta
Is This A Good Question/Topic? 0
  • +

Replies To: Align a panel to the right, HorizontalAlign=“Right” not working

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10376
  • View blog
  • Posts: 38,415
  • Joined: 27-December 08

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.
Was This Post Helpful? 0
  • +
  • -

#3 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1043
  • View blog
  • Posts: 4,057
  • Joined: 02-July 08

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:
.FloatRight{float:right;}


ASPX:
<asp:Panel CssClass="FloatRight" .../>

Was This Post Helpful? 2
  • +
  • -

#4 Xna4life  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 78
  • Joined: 21-February 12

Re: Align a panel to the right, HorizontalAlign=“Right” not working

Posted 14 January 2013 - 02:57 AM

Thats great thank you
Was This Post Helpful? 0
  • +
  • -

#5 h4nnib4l  Icon User is offline

  • The Noid
  • member icon

Reputation: 1181
  • View blog
  • Posts: 1,673
  • Joined: 24-August 11

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1