November 22, 2014css

How to fix horizontal scroll in Twitter Bootstrap

Listen to this article
AI voice: Sadaltager • Click play to generate
0:00
--:--

TwitterBootstrap is a CSS library that lets you build website rapidly and let you focus on web development instead of writing lots of (CSS) and reinventing the wheel. If your content focuses more on code has large strings of code that need to have horizontal scroll instead of blotting in a specific area. You can fix it with these simple lines that can be added to the LESS, SASS, and CSS library of Twitter Bootstrap.

pre {  
  overflow: auto;
  word-wrap: normal;
  white-space: pre;
}

If that does not fix this issue include code tag to.

pre, code {  
  overflow: auto;
  word-wrap: normal;
  white-space: pre;
}