0

I have a page that I need to right align a web part at the top of the page. Not the text itself I just need the web part to be on the right side instead of the left side.

I cannot change the layout as much of the rest of the page would then no longer be correct.

How do I make a web part align to the right?

  • I don't get what you mean by "you cannot change the layout." You cannot edit the .aspx page? – Brandon C. Jun 10 '14 at 13:51
  • @BrandonC. It would mess up the other formatting I have on the page if I changed the base web layout on the page. – Aaron Jun 10 '14 at 14:22
0

If you are using IE then press F12 to get start the developer tools and select the web part. You can then see the class tags where you can try to change the alignment/location.

You need to check for the webpart ID which will be something like this "MSOZoneCell_WebPartWPQ2"

Hope it helps!

  • Yes but wouldn't that only change it for me? As soon as I leave the page it would reset correct? – Aaron Jun 10 '14 at 14:21
  • You need to write the code inside a <script> tag and then use it inside a Content Editor web part. – Chandra Shekhar Jun 10 '14 at 14:27
0

In my case worked 'Right to left' in webpart settings:

enter image description here

-1

select the webpart and change the <script> in edit html sorce option available in the ribbon

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.