muh_reza Posted September 18, 2015 Share Posted September 18, 2015 Hi, I'm adding an image on my CMS block as follow: <img src=".../dev/img/cms/trial.jpg" alt="" width="800" height="600" /> the result is fine on my laptop, but when I open the page on mobile, the image have been shrinking. I thought maybe it was because of responsive feature. However, it becomes a problem as now the image has become too small to see. I'm using ps 1.6 Thanks for checking on my topic. I really appreciate for any kind of inputs and help. Regards, reza Link to comment Share on other sites More sharing options...
shacker Posted September 23, 2015 Share Posted September 23, 2015 You need to use relative sizes, like width="80%", and dont use height, that rescale the image. Or use a class to the image, and use @media to set the size for diffrent screen sizes <img src=".../dev/img/cms/trial.jpg" alt="" width="80%" /> Link to comment Share on other sites More sharing options...
muh_reza Posted September 24, 2015 Author Share Posted September 24, 2015 hi shacker, sorry for my late respond..and thanks for your help. I have tried your idea. however, I might not clear enough about the issue. the problem is when my customer open the page on mobile, the image become too small and they cannot see it clearly. after searching some stuffs, I might found another solution which is to use fancybox. I'm still trying it..hopefully it will be working and great. Thanks again! Link to comment Share on other sites More sharing options...
shacker Posted September 27, 2015 Share Posted September 27, 2015 well, you need to add a class <img src=".../dev/img/cms/trial.jpg" alt="" class="respo" /> and use in the global.css in the media queries the size @media (min-width: 768px) { .respo{width:100%} } @media (max-width: 768px) { .respo{width:200px} } uses only as example Link to comment Share on other sites More sharing options...
muh_reza Posted September 28, 2015 Author Share Posted September 28, 2015 again..thanks for the help. it does work..but unfortunately, the image is still not readable. and I've tried to use as below: @media (min-width: 768px) { .respo{width:200%} } but somehow bootstrap force it to fit the screen ("width = 100%"). I hope if using fancybox the popup size can be set wider than the screen resolution. Link to comment Share on other sites More sharing options...
shacker Posted April 3, 2016 Share Posted April 3, 2016 site url of the image? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now