This topic has 9 replies, 3 voices, and was last updated 5 years, 8 months ago ago by Rose Tyler
Hello,
I made half row image and half row test. But now that I see on phone, it looks very bad. There is too much space before and after text(which I do not want to be there on phone but need it on desktop to be in center of image.
Also, the picture has become too small in height. I want the image to remain the same size in mobile too and text to be just below it.
Kindly help me in this regard
Hello,
You need to change 100px of padding to value in vw or vh https://www.w3schools.com/cssref/css_units.asp
Add paddings for columns with images http://prntscr.com/mujbf4
Regards
Thank you. It now looks good on phone but there is issue on desktop. I want the whole image height but it is being cropped in desktop version. I want the rows to have no gap between them too.
Also, on whatever side image is on desktop (left or right) I want it to be above the text on mobile. Kindly suggest how to do this too.
Also, I want one page to have single picture and its related text, both on phone and desktop.
Hello,
If you check the page that you provided you’ll see that paddings of the text are much bigger than you used http://prntscr.com/mw9ef7 So, if you set the paddings for your text in vw http://prntscr.com/mw9dsm you’ll get almost the same result https://gyazo.com/b752328cd125c2d00f9da891b3c857ca
Also, probably you saw all the images on your example have some space above and below the pictured things http://prntscr.com/mw9thq it allows to avoid cutting during resize.
If you use bg cover for the column, please, check the documentation on how the bg cover works to understand the main point and choose the correct values for the paddings, margins etc https://www.w3schools.com/cssref/css3_pr_background-size.asp
Regards
Thanks a lot for the detailed reply. Just one more thing:
On whatever side image is on desktop (left or right) I want it to be above the corresponding text on mobile. Kindly address this too.
Add custom classes for columns of rows where the order of elements should be changed on mobile http://prntscr.com/mxo9x4 http://prntscr.com/mxoa7i and add custom CSS code (Theme Options > Custom CSS > Global custom CSS):
@media only screen and (max-width: 778px){
.custom-order-1 {
order: 1;
}
.custom-order-2 {
order: 2;
}
}
Do norget to clear cache before checking the result.
Regards
It’s done, thanks a lot 🙂
You’re welcome!
Regards
The issue related to '‘rows not correct on phone’' has been successfully resolved, and the topic is now closed for further responses