I am using Shopify Lite and adding in the buy button to my html. All is going well except that the button is left aligned in the div. I chose center on the buy button page but that doesn't center it. This is the first time I am on the forum so I am not sure what's customary to post here - my code (the shopify code and/or mine?) or an image or a link to the page? Any direction would be appreciated. Thanks.
Solved! Go to the solution
Thanks. My store url is bartonlewis.myshopify.com
I think the problem with your suggestion as well as the other one that was made is that the words "Buy" or "Add to Cart" (the text that us actually associated with the buy button) never appear in the html. When you generate code for the buy button you are given a bunch of js and a div with an id (for example: <div id='product-component-f346172a378'></div>). Therefore you can't center text because there is no text in the code that is provided you. All you have is a div with a id that links you to the product.
Sorry but my code has changed since this post. But I think before it was just a matter of making the left and right margin for the div that I had placed the buy button in "auto." If you can't get it to work, I recommend using Storetasker - one of Shopify's experts - to help. They're extremely reasonable and can do small tasks.
|an hour ago|
|3 hours ago|
|5 hours ago|
|5 hours ago|