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

#   Product Alignment - Center not Left

##

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

Less More

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

13 years 2 months ago [\#118552](#118552) by [russg](/forum/user/26535-russg "View russg's Profile")  *[Product Alignment - Center not Left](/forum/26-product-category-display/861048-product-alignment-center-not-left#118552 "This is going to be a simple answer for someone, but clearly not me!  Shop has been set up without any hiccups, however when I display a product, it is aligned left and I want it to align in the center. Not much to ask is it?....but for the life of me I cant find where to do it.  Everything else is configured how I want except this issue with the product displaying on the left of the screen instead of the center.  Can anyone assist?  The URL of the site is   www.passionlocker.com  (WARNING: THE SITE CONTAINS ADULT CONTENT!)  Thanks in advance.")* was created by *[russg](/forum/user/26535-russg "View russg's Profile")*

This is going to be a simple answer for someone, but clearly not me!

Shop has been set up without any hiccups, however when I display a product, it is aligned left and I want it to align in the center.
Not much to ask is it?....but for the life of me I cant find where to do it.

Everything else is configured how I want except this issue with the product displaying on the left of the screen instead of the center.

Can anyone assist?

The URL of the site is [ www.passionlocker.com](http://www.passionlocker.com) (WARNING: THE SITE CONTAINS ADULT CONTENT!)

Thanks in advance.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 2 months ago [\#118562](#118562) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product Alignment - Center not Left](/forum/26-product-category-display/861048-product-alignment-center-not-left#118562 "This is going to be a simple answer for someone, but clearly not me!  Shop has been set up without any hiccups, however when I display a product, it is aligned left and I want it to align in the center. Not much to ask is it?....but for the life of me I cant find where to do it.  Everything else is configured how I want except this issue with the product displaying on the left of the screen instead of the center.  Can anyone assist?  The URL of the site is   www.passionlocker.com  (WARNING: THE SITE CONTAINS ADULT CONTENT!)  Thanks in advance.")*

Hi,

Can you show me what do you exactly mean by "**product displaying on the left** " through some screenshots ? And also show me how do you want them to be ?

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

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

Less More

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

13 years 2 months ago [\#118564](#118564) by [russg](/forum/user/26535-russg "View russg's Profile")  Replied by *[russg](/forum/user/26535-russg "View russg's Profile")* on topic *[Product Alignment - Center not Left](/forum/26-product-category-display/861048-product-alignment-center-not-left#118564 "This is going to be a simple answer for someone, but clearly not me!  Shop has been set up without any hiccups, however when I display a product, it is aligned left and I want it to align in the center. Not much to ask is it?....but for the life of me I cant find where to do it.  Everything else is configured how I want except this issue with the product displaying on the left of the screen instead of the center.  Can anyone assist?  The URL of the site is   www.passionlocker.com  (WARNING: THE SITE CONTAINS ADULT CONTENT!)  Thanks in advance.")*

I think I may have been able to solve it, it may not be correct but it appears to have worked.

When displaying a product, the product title, image and "add to cart" buttons were aligned left.
I have altered the show_default.php file and added the following

&lt;div id="hikashop_product_top_part" class="hikashop_product_top_part" align="center"&gt; (Added the align="center") to make sure the title was centered

&lt;div id="hikashop_product_left_part" class="hikashop_product_left_part span6" style="width: 460px; "&gt; (added the width parameter)
&lt;div id="hikashop_product_right_part" class="hikashop_product_right_part span6" style="width: 460px; "&gt; (added the width parameter)
This appeared to make the Price and the Picture align to the center

Finally I added align="center" to the Add To Cart section -
&lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main" align="center"&gt;

I'm not sure if this is correct, or if there was an easier way, but it appears to have worked.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 2 months ago -  13 years 2 months ago [\#118565](#118565) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product Alignment - Center not Left](/forum/26-product-category-display/861048-product-alignment-center-not-left#118565 "This is going to be a simple answer for someone, but clearly not me!  Shop has been set up without any hiccups, however when I display a product, it is aligned left and I want it to align in the center. Not much to ask is it?....but for the life of me I cant find where to do it.  Everything else is configured how I want except this issue with the product displaying on the left of the screen instead of the center.  Can anyone assist?  The URL of the site is   www.passionlocker.com  (WARNING: THE SITE CONTAINS ADULT CONTENT!)  Thanks in advance.")*

I think that the best/other solution is just to directly use this kind of CSS code through your [ CSS ](http://www.hikashop.com/support/19-documentation/hikashop/installation-configuration/84-css-styling.html)file : Code:

\#hikashop_product_top_part { text-align: center; }

Last edit: 13 years 2 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

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

[](#top)
