I'm having trouble with the align-items property in my code. For some reason, it's not working as expected and I can't figure out why. Any suggestions or advice would be greatly appreciated!
Here is the snippet of code causing the issue:
HTML:
<div data-aos="fade-in" class="head">
<p class="head-text">Top Artists and Songs of 2023<p>
</div>
CSS:
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300&display=swap');
body {
background-color: #212121;
font-family: 'M PLUS Rounded 1c', sans-serif;
margin: 0;
}
.head {
background-color: #111111;
color: #1d8954;
filter: brightness(150%);
width: 100%;
height: 75vh;
margin:0;
align-items: center;
text-align: center;
}
.head-text {
font-size: 5rem;
margin:0;
}
Apologies for the lengthy CSS code, wanted to make sure all information was provided. Below is the image showing the issue (text not vertically centered):