-
AuthorPosts
-
pawelgol4 Friend
pawelgol4
- Join date:
- October 2015
- Posts:
- 44
- Downloads:
- 1
- Uploads:
- 0
- Thanks:
- 7
- Thanked:
- 3 times in 2 posts
October 26, 2015 at 2:14 pm #718938I am using Purity 3 and put the following media code in custom.css to make my website responsive:
@media only screen and (max-width: 2000px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 32% !important;}@media only screen and (max-width: 970px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 50% !important;}
}
@media only screen and (max-width: 750px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 100% !important;}
}And all is working fine in Mozilla, Opera and Chrome, but it seems that something breaks in Purity 3 or Hikashop (I suspect Purity 3) for Internet Explorer and on android, as in internet explorer and android the above code seems to be ignored completely (see photos).
So basically as I’m changing the size of browser, in Mozilla, Opera and Chrome everything is responsive and is resizing (photo1), but in IE and on android it is not resizing (photo2 and photo3)
Could you help me on this pls?
Kind Regards
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 27, 2015 at 3:59 am #719056Hi @pawelgol4,
It’s because basically, IE doesn’t support @media queries and all responsive websites are broken in IE.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 27, 2015 at 3:59 am #752893Hi @pawelgol4,
It’s because basically, IE doesn’t support @media queries and all responsive websites are broken in IE.
pawelgol4 Friendpawelgol4
- Join date:
- October 2015
- Posts:
- 44
- Downloads:
- 1
- Uploads:
- 0
- Thanks:
- 7
- Thanked:
- 3 times in 2 posts
October 28, 2015 at 2:45 am #719250Thx for answer 🙂
Actually really weird thing is that is reads the @media, but only the first line (in IE and android, in others is ok)
@media only screen and (max-width: 2000px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 32% !important;}and that’s why it shows 3 columns. If I change 32% –> 50% here:
@media only screen and (max-width: 2000px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 50% !important;}then it changes and shows only 2 columns, (both in IE and on android)
That’s not best, but I guess I’ll just play with it a bit, and see what works, maybe I’ll try min-width or somehow ranges or mid etc. and I’ll see what works, and I’ll write it here.
pawelgol4 Friendpawelgol4
- Join date:
- October 2015
- Posts:
- 44
- Downloads:
- 1
- Uploads:
- 0
- Thanks:
- 7
- Thanked:
- 3 times in 2 posts
October 28, 2015 at 2:45 am #752983Thx for answer 🙂
Actually really weird thing is that is reads the @media, but only the first line (in IE and android, in others is ok)
@media only screen and (max-width: 2000px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 32% !important;}and that’s why it shows 3 columns. If I change 32% –> 50% here:
@media only screen and (max-width: 2000px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 50% !important;}then it changes and shows only 2 columns, (both in IE and on android)
That’s not best, but I guess I’ll just play with it a bit, and see what works, maybe I’ll try min-width or somehow ranges or mid etc. and I’ll see what works, and I’ll write it here.
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by pawelgol4 8 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum