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

#   Mobile View - Optimizing Block Sizes (Fixity Price / Repair Time)

##

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

Less More

- Posts: 25
- Thank you received: 3
-
-

1 year 5 months ago [\#367444](#367444) by [Urmosg](/forum/user/79707-urmosg "View Urmosg's Profile")  *[Mobile View - Optimizing Block Sizes (Fixity Price / Repair Time)](/forum/32-content-creation/909473-mobile-view-optimizing-block-sizes-fixity-price-repair-time#367444 "-- url of the page with the problem -- :   fixity.hu  -- HikaShop version -- : 513 -- Joomla version -- : 4,4,10 -- PHP version -- : 8  Hello everyone,  I'm working on a Hikashop-powered website, and I'm encountering an issue with the mobile display on product pages. Specifically, on the Samsung A54 5G Akkumulátor page, I have two custom blocks displaying 'Fixity Price' and 'Repair Time' information. In mobile view, these blocks (and their surrounding frames) appear disproportionately large, negatively impacting readability and aesthetics.  My question is as follows:  How can I reduce the outer frame, size, and internal padding/margin values of these blocks (or the elements containing them) on mobile, to make them much more compact?  What I suspect or have tried so far:  I believe CSS modification will be necessary, but I'm unsure which CSS file and which selectors I should override. It might involve playing with Hikashop's built-in layout override options. The goal is to use mobile-specific CSS (media queries). Please, could you help me resolve this issue? Perhaps you could provide specific CSS code snippets or guidance on which files and class/ID names to look for?  Thank you in advance for your help! Urmos")* was created by *[Urmosg](/forum/user/79707-urmosg "View Urmosg's Profile")*

-- url of the page with the problem -- : [ fixity.hu](https://fixity.hu)
-- HikaShop version -- : 513
-- Joomla version -- : 4,4,10
-- PHP version -- : 8

Hello everyone,

I'm working on a Hikashop-powered website, and I'm encountering an issue with the mobile display on product pages. Specifically, on the Samsung A54 5G Akkumulátor page, I have two custom blocks displaying 'Fixity Price' and 'Repair Time' information. In mobile view, these blocks (and their surrounding frames) appear disproportionately large, negatively impacting readability and aesthetics.

My question is as follows:

How can I reduce the outer frame, size, and internal padding/margin values of these blocks (or the elements containing them) on mobile, to make them much more compact?

What I suspect or have tried so far:

I believe CSS modification will be necessary, but I'm unsure which CSS file and which selectors I should override.
It might involve playing with Hikashop's built-in layout override options.
The goal is to use mobile-specific CSS (media queries).
Please, could you help me resolve this issue? Perhaps you could provide specific CSS code snippets or guidance on which files and class/ID names to look for?

Thank you in advance for your help!
Urmos  [ ![98341.jpg](/forum/attachment/60577) ](/forum/attachment/60577 "98341.jpg")

[ ![98341.jpg](/forum/attachment/60577) ](/forum/attachment/60577 "98341.jpg")

- [ ![98341.jpg](/forum/attachment/60577) ](/forum/attachment/60577 "98341.jpg") [ ](/forum/attachment/60577?download=1 "98341.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA5NDczLW1vYmlsZS12aWV3LW9wdGltaXppbmctYmxvY2stc2l6ZXMtZml4aXR5LXByaWNlLXJlcGFpci10aW1lP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14325
-
-

1 year 5 months ago [\#367445](#367445) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mobile View - Optimizing Block Sizes (Fixity Price / Repair Time)](/forum/32-content-creation/909473-mobile-view-optimizing-block-sizes-fixity-price-repair-time#367445 "-- url of the page with the problem -- :   fixity.hu  -- HikaShop version -- : 513 -- Joomla version -- : 4,4,10 -- PHP version -- : 8  Hello everyone,  I'm working on a Hikashop-powered website, and I'm encountering an issue with the mobile display on product pages. Specifically, on the Samsung A54 5G Akkumulátor page, I have two custom blocks displaying 'Fixity Price' and 'Repair Time' information. In mobile view, these blocks (and their surrounding frames) appear disproportionately large, negatively impacting readability and aesthetics.  My question is as follows:  How can I reduce the outer frame, size, and internal padding/margin values of these blocks (or the elements containing them) on mobile, to make them much more compact?  What I suspect or have tried so far:  I believe CSS modification will be necessary, but I'm unsure which CSS file and which selectors I should override. It might involve playing with Hikashop's built-in layout override options. The goal is to use mobile-specific CSS (media queries). Please, could you help me resolve this issue? Perhaps you could provide specific CSS code snippets or guidance on which files and class/ID names to look for?  Thank you in advance for your help! Urmos")*

Hi,

If you look at these elements with your browser's inspector tools, you should be able to find the CSS code already applied to them and where that CSS code comes from.
In the file [ fixity.hu/templates/sj\_agenz/css/custom.css](https://fixity.hu/templates/sj_agenz/css/custom.css) you've added these CSS codes in order to add padding around these areas on desktop: Code:

.hkc-md-6.hikashop_product_ar .price,.hkc-md-6.hikashop_product_javitasi_ido { font-size: 26px; padding: 20px; border: 1px solid #cecece; position: relative; min-height: 200px; display: block }

and: Code:

.hkc-md-6.hikashop_product_javitasi_ido { text-align: center; display: flex; flex-direction: column; justify-content: center; -webkit-transition: .5s; -moz-transition: .5s; -o-transition: .5s; transition: .5s; line-height: 60px; }

So as it is a "custom.css" file, it seems to be added on your end and thus, you should be familiar with it.
The problem on mobile comes from the min-height and padding of the first CSS, and the line-height of the second as well as the br tag in the HTML of the second area.

So, to reduce the size of these 2 areas on mobile, you'll have to add CSS code with a media query targeting these and placed at the end of the CSS in that file.
You can see that the switch between the mobile and desktop happens at 992px on your website.
So, you can target devices smaller than this like this: Code:

@media only screen and (max-width : 990px) { .hkc-md-6.hikashop_product_ar .price,.hkc-md-6.hikashop_product_javitasi_ido { padding: 0px; min-height: 0px; } .hkc-md-6.hikashop_product_javitasi_ido { line-height: 30px; } .hkc-md-6.hikashop_product_javitasi_ido br{ display:none; } }

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

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

Less More

- Posts: 25
- Thank you received: 3
-
-

1 year 5 months ago [\#367448](#367448) by [Urmosg](/forum/user/79707-urmosg "View Urmosg's Profile")  Replied by *[Urmosg](/forum/user/79707-urmosg "View Urmosg's Profile")* on topic *[Mobile View - Optimizing Block Sizes (Fixity Price / Repair Time)](/forum/32-content-creation/909473-mobile-view-optimizing-block-sizes-fixity-price-repair-time#367448 "-- url of the page with the problem -- :   fixity.hu  -- HikaShop version -- : 513 -- Joomla version -- : 4,4,10 -- PHP version -- : 8  Hello everyone,  I'm working on a Hikashop-powered website, and I'm encountering an issue with the mobile display on product pages. Specifically, on the Samsung A54 5G Akkumulátor page, I have two custom blocks displaying 'Fixity Price' and 'Repair Time' information. In mobile view, these blocks (and their surrounding frames) appear disproportionately large, negatively impacting readability and aesthetics.  My question is as follows:  How can I reduce the outer frame, size, and internal padding/margin values of these blocks (or the elements containing them) on mobile, to make them much more compact?  What I suspect or have tried so far:  I believe CSS modification will be necessary, but I'm unsure which CSS file and which selectors I should override. It might involve playing with Hikashop's built-in layout override options. The goal is to use mobile-specific CSS (media queries). Please, could you help me resolve this issue? Perhaps you could provide specific CSS code snippets or guidance on which files and class/ID names to look for?  Thank you in advance for your help! Urmos")*

For the forum (general thank you)

Subject: RE: Mobile View - Optimizing Block Sizes (Fixity Price / Repair Time) - SOLVED!

"Hi nicolas,

I just wanted to say a huge thank you for your invaluable help with the mobile view optimization issue.

The provided CSS code, especially the media query for the padding, min-height, width, and margin properties within the .hkc-md-6.hikashop_product_ar .price and .hkc-md-6.hikashop_product_javitasi_ido selectors, worked perfectly!

The blocks now display much more compactly and appropriately on mobile devices, greatly improving the user experience.

Your detailed explanation and targeted CSS were exactly what I needed.

Thanks again for the excellent support!

Best regards,

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

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

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