I have utilized Bootstrap CSS to style my webpage. Interestingly, when I incorporate the <pre>...</pre>
tag within the class="col"
, it does not adjust the width of the column as expected, and instead enlarges the entire column's width. However, everything works fine when I apply the class="col-lg-8"
HTML Code
<div class="col">
<pre>
<code>
...
</code>
</pre>
</div>
With <pre>
tag and class="col"
https://i.sstatic.net/Kc88Z.png
With <pre>
tag and class="col-lg-8"
https://i.sstatic.net/bLonh.png
Without <pre>
tag
https://i.sstatic.net/mek4t.png