How to center "view your order" button in email notification

Solved
Highlighted
New Member
3 0 0

@KatyHi Katy, I used your above coding and it worked. Do you know how I can put the order number in the center under my logo?

0 Likes
Highlighted
Tourist
5 1 1

Hi Kathy,

I would like to resize the button and centralize it at the same time. Somehow, I only manage to either resize it or centralize it, but not both. Could you please help? This is what my code looks like now. I am not an expert, it's hit or miss in my case. :) 

Thanks in advance for your help!

Andrea

 <table class="row actions">
  <tr>
    <td class="actions__cell" style=display: inline-table;">
      <table class="button main-action-cell" style="width: 50%;">
        <tr>
          <td class="button__cell"><a href="{{ order_status_url }}" class="button__text">VIEW YOUR ORDER ONLINE</a></td>
        </tr>
      </table>
      {% if shop.url %}
    <table class="link secondary-action-cell">
      <tr>
        <td class="link__cell">  <a href="{{ shop.url }}">             </a></td>
      </tr>
    </table>
{% endif %}

 

0 Likes