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

#   How to center the checkout button inside the cart module

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

6 years 6 months ago [\#318862](#318862) by [showroomjena](/forum/user/59477-showroomjena "View showroomjena's Profile")  *[How to center the checkout button inside the cart module](/forum/32-content-creation/899799-how-to-center-the-checkout-button-inside-the-cart-module#318862 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.30 -- Browser(s) name and version -- : Microsoft Edge 44.18362  Hello, i'd like to center the proceed to checkout button on the mini cart module in my sidebar. since the button is inside an -element I can not work with the module class suffix for the cart module as this is a -element…at least i dont know how to style an -element inside a -element with the approach of using the class suffix.  it is possible though to specify a for the but this is not professional and only works for my screen-resolution.  any ideas?")* was created by *[showroomjena](/forum/user/59477-showroomjena "View showroomjena's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.2.30
-- Browser(s) name and version -- : Microsoft Edge 44.18362

Hello,
i'd like to **center** the proceed to checkout button on the mini cart module in my sidebar.
since the button is inside an &lt;a&gt;-element I can not work with the module class suffix for the cart module as this is a &lt;div&gt;-element…at least i dont know how to style an &lt;a&gt;-element inside a &lt;div&gt;-element with the approach of using the class suffix.

it is possible though to specify a Code:

margin-left

for the Code:

.hikabtn, .hika_j2 .btn{}

but this is not professional and only works for my screen-resolution.

any ideas?

[ ![Unbenannt.PNG](/forum/attachment/49315) ](/forum/attachment/49315 "Unbenannt.PNG")

- [ ![Unbenannt.PNG](/forum/attachment/49315) ](/forum/attachment/49315 "Unbenannt.PNG") [ ](/forum/attachment/49315?download=1 "Unbenannt.PNG")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

6 years 6 months ago [\#318898](#318898) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to center the checkout button inside the cart module](/forum/32-content-creation/899799-how-to-center-the-checkout-button-inside-the-cart-module#318898 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.30 -- Browser(s) name and version -- : Microsoft Edge 44.18362  Hello, i'd like to center the proceed to checkout button on the mini cart module in my sidebar. since the button is inside an -element I can not work with the module class suffix for the cart module as this is a -element…at least i dont know how to style an -element inside a -element with the approach of using the class suffix.  it is possible though to specify a for the but this is not professional and only works for my screen-resolution.  any ideas?")*

Hi,

You can use such CSS code: Code:

div.hikashop_cart { text-align: center; } table.hikashop_cart { text-align: left; }

The first CSS targets the whole div of the cart module, and the second one revert the change for the table element displaying the products so that only the button is affected.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk5Nzk5LWhvdy10by1jZW50ZXItdGhlLWNoZWNrb3V0LWJ1dHRvbi1pbnNpZGUtdGhlLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) 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.050 seconds

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