[Skip to main content](#vessel-content)

#   Add to cart button is not aligned in the center

##

- **[nrgiser](/forum/user/39434-nrgiser "View nrgiser's Profile")**
- [![nrgiser's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39434-nrgiser "View nrgiser's Profile") Topic Author
- [ Offline](/forum/user/39434-nrgiser)

Less More

- Posts: 17
- Thank you received: 0
-
-

9 years 4 weeks ago [\#280939](#280939) by [nrgiser](/forum/user/39434-nrgiser "View nrgiser's Profile")  *[Add to cart button is not aligned in the center](/forum/26-product-category-display/892460-add-to-cart-button-is-not-aligned-in-the-center#280939 "-- url of the page with the problem -- :   www.staging6.2-sleep.be/index.php/catego.../category/89-textiel  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.0.24 -- Browser(s) name and version -- : Chrome 61.0.3163.100  Hi,  In the image in attachment you can see that the 'Choose options' button (&quot;Kies opties&quot;) is aligned in the center of the pane but the 'Add to cart' button (&quot;Toevoegen&quot;) is not. How can I fix this?")* was created by *[nrgiser](/forum/user/39434-nrgiser "View nrgiser's Profile")*

-- url of the page with the problem -- : [ www.staging6.2-sleep.be/index.php/catego.../category/89-textiel](http://www.staging6.2-sleep.be/index.php/categorieen/category/89-textiel)
-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.1
-- PHP version -- : 7.0.24
-- Browser(s) name and version -- : Chrome 61.0.3163.100

Hi,

In the image in attachment you can see that the 'Choose options' button ("Kies opties") is aligned in the center of the pane but the 'Add to cart' button ("Toevoegen") is not. How can I fix this?

[ ![image.png](/forum/attachment/41011) ](/forum/attachment/41011 "image.png")

- [ ![image.png](/forum/attachment/41011) ](/forum/attachment/41011 "image.png") [ ](/forum/attachment/41011?download=1 "image.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI0NjAtYWRkLXRvLWNhcnQtYnV0dG9uLWlzLW5vdC1hbGlnbmVkLWluLXRoZS1jZW50ZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 4 weeks ago -  9 years 4 weeks ago [\#280968](#280968) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Add to cart button is not aligned in the center](/forum/26-product-category-display/892460-add-to-cart-button-is-not-aligned-in-the-center#280968 "-- url of the page with the problem -- :   www.staging6.2-sleep.be/index.php/catego.../category/89-textiel  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.0.24 -- Browser(s) name and version -- : Chrome 61.0.3163.100  Hi,  In the image in attachment you can see that the 'Choose options' button (&quot;Kies opties&quot;) is aligned in the center of the pane but the 'Add to cart' button (&quot;Toevoegen&quot;) is not. How can I fix this?")*

Hello,

You can add some css command to your **front end css file**, see [ **here**](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom) how to proceed.
More precisely, you must find the **html container class** that have your element, in order to target it, this kind of code can give you what you required :
Code:

.specific_page_class .html_container_class .html_class { margin: 20%; }

**Note** : The page class aim is to keep your css command only efficient on the required page.
Hope this will help you.

Regards

Last edit: 9 years 4 weeks ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [nrgiser](/forum/user/39434-nrgiser "View nrgiser's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI0NjAtYWRkLXRvLWNhcnQtYnV0dG9uLWlzLW5vdC1hbGlnbmVkLWluLXRoZS1jZW50ZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
