Jump to content

iOS code block overflow not scrolling on mobile

Recommended Posts

Site URL: http://www.harrisoncarto.com

I have code blocks on my website and would like to make overflow text scroll on mobile rather than wrap. I've included the following code, which works for desktop windows but not mobile ones:

pre, ul, ol, dl {
  font-family: courier;
  line-height: 1.3em;
  overflow: auto;
}

I've also included a picture of what the code looks like on mobile. Any help is appreciated.

IMG_5788.PNG

Link to comment
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.