Html Module width on mobile

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Jan 18, 2013 4:05 am
Reply with quote
Report this post
Hi

HTML module width is not showing good mobile , the set up on pc is okay ,do you know why ? how can i fix this
http://planetekreyol.com/abonhaiti20/

SEE ,youtube and the pub , children of injustice on mobile ,you will see..
Thanks
User avatar
Expert Boarder

teitbite
Sat Jan 19, 2013 5:15 am
Reply with quote
Report this post
Hi

Can You please show me what is the problem ? It looks ok when I check it with iPhone. image is 100% of the available space.
User avatar
Moderator

GK User
Sat Jan 19, 2013 6:08 am
Reply with quote
Report this post
teitbite wrote:Hi

Can You please show me what is the problem ? It looks ok when I check it with iPhone. image is 100% of the available space.



I fixed it by adding class suffix clear light and i change the width to 275..this keep the pics in the middle and also is showing good on iphone.
without these changes , images were wider on the iphone...

thanks anyway
User avatar
Expert Boarder

teitbite
Sat Jan 19, 2013 11:19 am
Reply with quote
Report this post
Hi

There is a css class which should cover it:

Code: Select all
img { width: 100%; max-width: 100%; }


Maybe it got overwritten by some 3rd party extension ?
User avatar
Moderator

GK User
Tue Jan 22, 2013 7:36 pm
Reply with quote
Report this post
teitbite wrote:Hi

There is a css class which should cover it:

Code: Select all
img { width: 100%; max-width: 100%; }


Maybe it got overwritten by some 3rd party extension ?


IF you do that image on GK weather Stretch out .....
User avatar
Expert Boarder

teitbite
Wed Jan 23, 2013 2:24 am
Reply with quote
Report this post
Hi

So You need to add a closer matched css selector. I cannot see Your site now, but I'm guessing that if it's a Custom HTML module than You can use:

Code: Select all
.custom img { width: 100%; max-width: 100%; }
User avatar
Moderator

GK User
Mon Feb 11, 2013 4:34 am
Reply with quote
Report this post
teitbite wrote:Hi

So You need to add a closer matched css selector. I cannot see Your site now, but I'm guessing that if it's a Custom HTML module than You can use:

Code: Select all
.custom img { width: 100%; max-width: 100%; }


Here the link:http://planetekreyol.com/

this doesnt work , on iphone still images are bigger
User avatar
Expert Boarder

teitbite
Mon Feb 11, 2013 7:34 pm
Reply with quote
Report this post
Hi

My intention was to resize images to cover 100% of screen. Do You mean that it should not resize over the image size ? I do not understand Your request fully.
User avatar
Moderator

GK User
Mon Feb 18, 2013 4:41 am
Reply with quote
Report this post
teitbite wrote:Hi

My intention was to resize images to cover 100% of screen. Do You mean that it should not resize over the image size ? I do not understand Your request fully.


I used that code and it work for me :
.box.light img {
background: none repeat scroll 0 0 #F8F8F8 !important;
padding: -1px!important;
width: 100%!important;
}
User avatar
Expert Boarder

teitbite
Tue Feb 19, 2013 8:03 pm
Reply with quote
Report this post
Hi

Ok. So looks like an important rule was missing. I'm not sure if background or padding -1px does anything (probably only for transparent images).
User avatar
Moderator


cron