To center an item horizontally, you have a few options. One way is to use the following CSS properties:
display: flex;
justify-content: center;
This code can be applied to the parent element to center the item. Additionally, there are various other values for justify-content that can be used to align the item in different ways.
If you are using Bootstrap, you can achieve the same result by simply applying the following classes to the parent element:
d-flex justify-content-center
These classes will also horizontally center the item, and Bootstrap offers a range of other classes for alignment that can be found in their documentation.