user

Joseph Morgan

19 Dec 2021

Text go out of the column in 'Bootstap'

Bootstrap

When I copy the text in one line into the code and check the page I find out that the text is getting out of the column in bootstrap, is code is like 

<div class="row">
<div class="col-md-4 col-12"></div>
<div class="col-md-4 col-12">
	<h2>Helllllllllllllllllllllllllooooooooooooooooooolllllll</h2>
</div>
<div class="col-md-4 col-12"></div>
</div>

How can I keep it on the page, I tried flex-wrap: wrap; but I still facing the same issue,

Thanks in advance

Comments

Mohamed Atef

19 Dec 2021

Best Answer

best answer
githubgithubgithub

You can use word-break: break-word; it will break your text anyway and keep the column padding as you need 

word-break: break-word;

© 2024 Copyrights reserved for web-brackets.com