Articles → BOOTSTRAP → Pre-Scrollable Class In Bootstrap

Pre-Scrollable Class In Bootstrap






Purpose





Example


<!DOCTYPE html>
<html lang="en">
   <head>
      <title>Bootstrap Example</title>
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
   </head>
   <body>
      <pre class="pre-scrollable"><code><p>Here some code will come...</p>
<p>Here another code will come...</p>
</code></pre>
   </body>
</html>



Output


Picture showing the output of the pre-scrollable class in Bootstrap
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, September 7, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250