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.


Link to comment
  • Replies 0
  • Created
  • Last Reply


This topic is now archived and is closed to further replies.

  • 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.