How to center button in text box

725
1
03-07-2022 07:50 PM
WQIDES
by
New Contributor II

Hi, I would like to center the button inside a text box. the HTML <CENTER> tag doesn't work, any ideas? The align button inside the text box doesn't work either, it can align either left or right, but not center.

Thank you 🙂

0 Kudos
1 Reply
KlaraSchmitt
Esri Regular Contributor

Hello,

<center> is deprecated. Try wrapping your button in a <p> tag and then put the .text-center on the paragraph tag instead.

<p class="text-center"><a href="#" class="btn btn-primary">Button Text</a></p>