Could please advise how I can change a bit proportions of the item in mobile view. The native image ratio is 1620x1080 and on desktop view the 40% in almost the same ratio but on mobile I don't have any option to adjust the ratio. And it is more a square than landscape. So I would like to decrease height of the post items in mobile. Also on hover the image gets bigger but not a color overlay. Please see attached. Many thanks!
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
@media only screen and (max-width: 999px) and (min-width: 0px) {
.nectar-post-grid[data-grid-item-height="40vh"] .nectar-post-grid-item {
min-height: 25vh !important;
}
}
Remove the earlier provided CSS and use below only.
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
@media only screen and (max-width: 690px) {
body .nectar-post-grid[data-columns][data-grid-spacing] .nectar-post-grid-item {
padding-bottom: 58% !important;
}
.nectar-post-grid[data-grid-item-height="40vh"] .nectar-post-grid-item {
min-height: 24vh !important;
}
}
Hi!
Could please advise how I can change a bit proportions of the item in mobile view. The native image ratio is 1620x1080 and on desktop view the 40% in almost the same ratio but on mobile I don't have any option to adjust the ratio. And it is more a square than landscape. So I would like to decrease height of the post items in mobile. Also on hover the image gets bigger but not a color overlay. Please see attached. Many thanks!
Hey Again,
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Thank you Tahir, but it didn't change anything...
Remove the earlier provided CSS and use below only.
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Perfect!
Thank you very much and all the best!