Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

[Solved] Allowing horizontal scroll on mobile for one image


D88

Recommended Posts

Hello,

I have an image that I want to prevent from getting too small while on mobile.

Initially, the image would just scale with the screen size, forcing the entire image to be visible on mobile. I've restricted it within the Custom CSS by setting the min-width to 600px for the image, but now it is no longer becoming too small, but I am unable to scroll horizontally to access the full image. 

Does anyone know how to allow horizontal scrolling on a single image?

 

Thanks in advance for any help!

Edited by D88
Link to post
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I managed to solve this problem with a css inline of the code block. Seems like my attempts at using the Custom CSS sheet weren't taking within the div block initially so once I moved it over to the codeblock itself, it took priority it seems.

 

<div style="overflow:scroll">
  
<img src="https://static1.squarespace.com/static/XXXXX" class="a">
  

</div>

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...