How to get centered content using Twitter Bootstrap and HTML?

Spread the love

Sometimes, we want to get centered content using Twitter Bootstrap and HTML.

In this article, we’ll look at how to get centered content using Twitter Bootstrap and HTML.

How to get centered content using Twitter Bootstrap and HTML?

To get centered content using Twitter Bootstrap and HTML, we use the text-center class.

For instance, we write

<div class="text-center">center</div>

to set the class attribute to text-center to center the text inside the div.

Conclusion

To get centered content using Twitter Bootstrap and HTML, we use the text-center class.

Leave a Reply

Your email address will not be published. Required fields are marked *