Jump to content

Community

Code block scroll bar?


cfish
 Share

Recommended Posts

Very long blocks of code present a problem for the readability of forum threads. Commonly, this is resolved by adding a scroll bar to the block after a reasonable number of lines. IPB4 does not do this, which leads to crazy long code blocks and almost unreadable threads like this one.

Could we please have scroll bar functionality for code blocks in 4.1?

Link to comment
Share on other sites

1 hour ago, cfish said:

Of course, but it should be there by default. It always was in the past and I'm just thinking that it was an oversight.

My fresh out of the box 3.4.8 install doesn't do it.

1 hour ago, cfish said:

In fact, you need to include the overflow property to force the scroll bar:


pre.ipsCode{
	max-height:500px;
	overflow:auto;
}

 

My fresh out of the box 4.0.13.1 install didn't need it, in fact. (you can go ahead and edit the CSS on here with browser developer tools and see that it works fine without adding the overflow in....it's applied already in IPS's own css)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy