- Posts: 8
- Thank you received: 0
Adapt Photo block heignt
4 years 11 months ago #337512
by Elegantia
Adapt Photo block heignt was created by Elegantia
-- url of the page with the problem -- :
www.elegantiastore.fr/index.php/fr/product/308-robe-nataly
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4.24
-- Browser(s) name and version -- : Chrome
Hi,
I'm a CSS begginer yet and therefore I encounter a difficulty to adapt the main photo block depending on the screen width.
When I'm on a large screen, the miniatures below the main picture appears right below it -> Great
When I'm on a smaller's screen version, smaller the screen, bigger the distance between the picture and the miniatures. -> Not great
This because of the standart height of the picture's bloc that is fixed. :
Is it possible to have a responsive bock that adapt to the picture 's height so that the scrool arrows appear in the middle of the pic and the miniatures right at the bottom ?
Where to write this code ?
Thanks for your answers !
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4.24
-- Browser(s) name and version -- : Chrome
Hi,
I'm a CSS begginer yet and therefore I encounter a difficulty to adapt the main photo block depending on the screen width.
When I'm on a large screen, the miniatures below the main picture appears right below it -> Great
When I'm on a smaller's screen version, smaller the screen, bigger the distance between the picture and the miniatures. -> Not great
This because of the standart height of the picture's bloc that is fixed. :
Code:
element.style {
height: 570px;
}
Is it possible to have a responsive bock that adapt to the picture 's height so that the scrool arrows appear in the middle of the pic and the miniatures right at the bottom ?
Where to write this code ?
Thanks for your answers !
Please Log in or Create an account to join the conversation.
4 years 11 months ago #337529
by Philip
Replied by Philip on topic Adapt Photo block heignt
Hello,
Quite strange because I see that you have the HikaShop 4.4.4, and despite everything, this problem that you reported to us is in our minds corrected ...
Maybe you have the first build of HikaShop 4.4.4 and the fix is in a higher build? ...
Can you update to see if that fixes your problem?
Awaiting your returns to going more far in your subject.
Regards
Quite strange because I see that you have the HikaShop 4.4.4, and despite everything, this problem that you reported to us is in our minds corrected ...
Maybe you have the first build of HikaShop 4.4.4 and the fix is in a higher build? ...
Can you update to see if that fixes your problem?
Awaiting your returns to going more far in your subject.
Regards
Please Log in or Create an account to join the conversation.
4 years 11 months ago #337593
by Elegantia
Replied by Elegantia on topic Adapt Photo block heignt
Hi,
Thanks for your quick answer.
I checked and when I update the new version, it comes back to normal.
Though I realised it is a modification I made in :media/com_hikashop/css/style_default.css.
There I adapt the products to 2 colums in line 169:
The goal is having 2 columns of products on secreen, but it creates, i realise, the described problem !
IS it possible to overcome this ?
Thanks
Thanks for your quick answer.
I checked and when I update the new version, it comes back to normal.
Though I realised it is a modification I made in :media/com_hikashop/css/style_default.css.
There I adapt the products to 2 colums in line 169:
Code:
.hkc-xs-12, .hkc-xs-11, .hkc-xs-10, .hkc-xs-9, .hkc-xs-8, .hkc-xs-7, .hkc-xs-6, .hkc-xs-5, .hkc-xs-4, .hkc-xs-3, .hkc-xs-2, .hkc-xs-1,
.hkc-sm-12, .hkc-sm-11, .hkc-sm-10, .hkc-sm-9, .hkc-sm-8, .hkc-sm-7, .hkc-sm-6, .hkc-sm-5, .hkc-sm-4, .hkc-sm-3, .hkc-sm-2, .hkc-sm-1,
.hkc-md-12, .hkc-md-11, .hkc-md-10, .hkc-md-9, .hkc-md-8, .hkc-md-7, .hkc-md-6, .hkc-md-5, .hkc-md-4, .hkc-md-3, .hkc-md-2, .hkc-md-1,
.hkc-lg-12, .hkc-lg-11, .hkc-lg-10, .hkc-lg-9, .hkc-lg-8, .hkc-lg-7, .hkc-lg-6, .hkc-lg-5, .hkc-lg-4, .hkc-lg-3, .hkc-lg-2, .hkc-lg-1,
.hkc-xl-12, .hkc-xl-11, .hkc-xl-10, .hkc-xl-9, .hkc-xl-8, .hkc-xl-7, .hkc-xl-6, .hkc-xl-5, .hkc-xl-4, .hkc-xl-3, .hkc-xl-2, .hkc-xl-1{
width: 50%;
}
The goal is having 2 columns of products on secreen, but it creates, i realise, the described problem !
IS it possible to overcome this ?
Thanks
Please Log in or Create an account to join the conversation.
4 years 11 months ago - 4 years 11 months ago #337609
by Philip
Replied by Philip on topic Adapt Photo block heignt
Hello,
No, we don't think that this come from this custom css command.
But did you try to update your HikaShop version as I invite you to process previously ?
=> If, yes can you confirm that this change nothing to your current issue.
Another point to check, this setting :
This will force your image size, and if it's not required the most simple is to remove it, and basically use directly an image with the good size maybe.
BUT if for a reason or another it's required, then you can use this custom css command to, as you say overcome this display issue :
.hikashop_product_page div#hikashop_image_main_thumb_div {
height: unset !important;
}
Note : That the class ".hikashop_product_page" is to restrict the css command to the required context, here the product page.
Hope this will allow you to solve the issue.
Regards
No, we don't think that this come from this custom css command.
But did you try to update your HikaShop version as I invite you to process previously ?
=> If, yes can you confirm that this change nothing to your current issue.
Another point to check, this setting :
This will force your image size, and if it's not required the most simple is to remove it, and basically use directly an image with the good size maybe.
BUT if for a reason or another it's required, then you can use this custom css command to, as you say overcome this display issue :
.hikashop_product_page div#hikashop_image_main_thumb_div {
height: unset !important;
}
Note : That the class ".hikashop_product_page" is to restrict the css command to the required context, here the product page.
Hope this will allow you to solve the issue.
Regards
Last edit: 4 years 11 months ago by Philip.
Please Log in or Create an account to join the conversation.
Time to create page: 0.162 seconds