JAY1570048019 Posted July 20, 2023 Share Posted July 20, 2023 Hi everyone, hoping you can help with this. I’m trying to extend my videos and images right to the edge of a mobile screen, but only when viewed in mobile. The desktop content width would stay the same. Here is an example of the page: https://www.bookofjoash.com/home/make-lamb-not-walls Your help would be much appreciated, thank you. Link to comment
tuanphan Posted July 22, 2023 Share Posted July 22, 2023 You mean remove right space of screen? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
JAY1570048019 Posted July 23, 2023 Author Share Posted July 23, 2023 Yes! But would like to only extend the video and image content. Not the body text. Thanks @tuanphan you are very helpful. - J Link to comment
JAY1570048019 Posted July 24, 2023 Author Share Posted July 24, 2023 @tuanphan just for clarity. Right to the edge of the right AND left of a mobile screen. Link to comment
tuanphan Posted July 25, 2023 Share Posted July 25, 2023 Add to Design > Custom CSS @media screen and (max-width:767px) { body#item-60cc21b91a96e24d4e8f244b { .video-block, .image-block { padding-right: 0px !important; } }} Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
JAY1570048019 Posted July 25, 2023 Author Share Posted July 25, 2023 Hey @tuanphan it works! (Sort of). There is still a slight gap (see attached). I tried to use e.g: -4px but it doesn’t work. Thanks for your help. - J Link to comment
Solution tuanphan Posted July 26, 2023 Solution Share Posted July 26, 2023 14 hours ago, JAY1570048019 said: Hey @tuanphan it works! (Sort of). There is still a slight gap (see attached). I tried to use e.g: -4px but it doesn’t work. Thanks for your help. - J padding has no negative value you can use margin under padding margin-right: -4px; Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment