# Newbie. How do I center my code?

**URL:** <https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048>\
**Category:** RapidWeaver Classic\
**Created:** [October 5, 2015, 1:08pm UTC](https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048 "2015-10-05T13:08:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac73](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mac73](https://forums.realmacsoftware.com/u/mac73)\
**Post date:** [October 5, 2015, 1:08pm UTC](https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048/1 "2015-10-05T13:08:30Z")

</div>

HI  
I made a paypal button and when I past it into my style sheet its does not center on the page. How do I center the html code ?

thank you

---

<div class="post-metadata">

**Author:** ![anon75570550](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@anon75570550](https://forums.realmacsoftware.com/u/anon75570550)\
**Post date:** [October 5, 2015, 1:49pm UTC](https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048/2 "2015-10-05T13:49:31Z")

</div>

Hi Mike,

One thing you need to do with code from external sources is apply **Clear Formatting** and **Ignore Formatting** , both of which you’ll find in the **Format** menu. Simply select and highlight your code and then apply each in turn.

Marten

---

<div class="post-metadata">

**Author:** ![mac73](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mac73](https://forums.realmacsoftware.com/u/mac73)\
**Post date:** [October 5, 2015, 2:26pm UTC](https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048/3 "2015-10-05T14:26:17Z")

</div>

ok thank you but after i do that the button is still aligned to the left side of the page in preview

---

<div class="post-metadata">

**Author:** ![anon75570550](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@anon75570550](https://forums.realmacsoftware.com/u/anon75570550)\
**Post date:** [October 5, 2015, 2:30pm UTC](https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048/4 "2015-10-05T14:30:47Z")

</div>

How about highlighting the code and then selecting **Centre** from the **Format** menu? Does that work?

Marten

---

<div class="post-metadata">

**Author:** ![mac73](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mac73](https://forums.realmacsoftware.com/u/mac73)\
**Post date:** [October 5, 2015, 2:31pm UTC](https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048/5 "2015-10-05T14:31:44Z")

</div>

no it centers the code but on preivew the button is on the left side of the screen

---

<div class="post-metadata">

**Author:** ![anon75570550](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@anon75570550](https://forums.realmacsoftware.com/u/anon75570550)\
**Post date:** [October 5, 2015, 2:40pm UTC](https://forums.realmacsoftware.com/t/newbie-how-do-i-center-my-code/3048/6 "2015-10-05T14:40:13Z")

</div>

Try this then: select the stack, go to the Settings \> Layout \> Fill Mode and select Fixed Size. Set the width to slightly bigger than the width of the button and Align it Center.

Marten
