how do I make the 'name' text align to the center for different screen resolutions? I think the culprit is I hid the TikTok logo on smaller screens. Thanks in advance for your help!
HTML:
<div class="header">
<h2 class="name">Name</h2>
<a
class="social-icon-header"
href="https://www.tiktok.com/@xxx"
target="_blank"
>
<i class="fab fa-tiktok fa-2x"></i>
</a>
</div>
CSS:
/* Header */
.social-icon-header {
display: none;
}
.name {
text-align: center !important;
justify-content: center !important;
/* padding-left: 15%; */
}[![screenshots][1]][1]