- Posts: 16
- Thank you received: 0
Hikashop main image - Mobile device fit to screen
11 years 11 months ago #178065
by mici
Hikashop main image - Mobile device fit to screen was created by mici
-- url of the page with the problem -- :
5.10.105.46/~yamitysb/
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3`
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : ios Safari
Hi,
I would like to get the product image fit the screen size on a mobile phone, now it is to big and it shift the display to the right (image attached - mobile_screen_shift_R.png)
My Configuration & Template
In the Configuration > Display > see bootstrap design = YES
template - T3BS3
When I change in configuration > main > image > Product page image width = 200
Product page image height = 200 the problem is fixed (image attached - image_size.png)
I have put this code in Configuration > Display > CSS
@media (max-width: 767px) {
#hikashop_main_image { width: 49% !important; float:right; margin:0;}
}
but it is still does not work
the final display should look like this (image attached - moible_screen_ok.png)
What can I do to probably display the product image on mobile devices?
Please advise
Thanks
M
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3`
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : ios Safari
Hi,
I would like to get the product image fit the screen size on a mobile phone, now it is to big and it shift the display to the right (image attached - mobile_screen_shift_R.png)
My Configuration & Template
In the Configuration > Display > see bootstrap design = YES
template - T3BS3
When I change in configuration > main > image > Product page image width = 200
Product page image height = 200 the problem is fixed (image attached - image_size.png)
I have put this code in Configuration > Display > CSS
@media (max-width: 767px) {
#hikashop_main_image { width: 49% !important; float:right; margin:0;}
}
but it is still does not work
the final display should look like this (image attached - moible_screen_ok.png)
What can I do to probably display the product image on mobile devices?
Please advise
Thanks
M
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 11 months ago #178094
by Mohamed Thelji
Replied by Mohamed Thelji on topic Hikashop main image - Mobile device fit to screen
Hello,
The solution will just be to adapt a little more CSS code using the media query : @media (max-width: 767px)
The solution will just be to adapt a little more CSS code using the media query : @media (max-width: 767px)
Please Log in or Create an account to join the conversation.
11 years 10 months ago #178936
by mici
Replied by mici on topic Hikashop main image - Mobile device fit to screen
Hi Thanks for your replay,
I have put this code
@media (max-width: 767px) {
#hikashop_main_image { width: 49% !important; float:right; margin:0;}
}
but it did not work.
Can you help what css code I should put to make it work
Thanks
M
I have put this code
@media (max-width: 767px) {
#hikashop_main_image { width: 49% !important; float:right; margin:0;}
}
but it did not work.
Can you help what css code I should put to make it work
Thanks
M
Please Log in or Create an account to join the conversation.
11 years 10 months ago #178954
by Xavier
Replied by Xavier on topic Hikashop main image - Mobile device fit to screen
Hi,
I just simulate a mobile screen on my browser and the image seems to have a correct size.
Here is documenation for customizations:
hikashop.com/support/support/documentati...ize-the-display.html
As it's a template issue, so customizations etc, we don't really support this, please contact your template provider for further details if it is a HikaShop compatible template.
I just simulate a mobile screen on my browser and the image seems to have a correct size.
Here is documenation for customizations:
hikashop.com/support/support/documentati...ize-the-display.html
As it's a template issue, so customizations etc, we don't really support this, please contact your template provider for further details if it is a HikaShop compatible template.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 14
- Thank you received: 0
11 years 9 months ago #183246
by electroadi
Replied by electroadi on topic Hikashop main image - Mobile device fit to screen
Hey,
if you can please just tell me in which display exactly and where i can put a piece code for the product image to be smaller at small devices i can fix that.
Adi
if you can please just tell me in which display exactly and where i can put a piece code for the product image to be smaller at small devices i can fix that.
Adi
Please Log in or Create an account to join the conversation.
11 years 9 months ago #183260
by nicolas
Replied by nicolas on topic Hikashop main image - Mobile device fit to screen
Hi,
The documentation link provided by Xavier explains where to add your piece of CSS code :
hikashop.com/support/support/documentati...ize-the-display.html
There, add some @media CSS code to force the image size based on the device width:
appendto.com/2014/03/responsive-approach-image-scaling-css/
The documentation link provided by Xavier explains where to add your piece of CSS code :
hikashop.com/support/support/documentati...ize-the-display.html
There, add some @media CSS code to force the image size based on the device width:
appendto.com/2014/03/responsive-approach-image-scaling-css/
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds