Tue, 2021-09-14 19:02
Hi. I hope someone here can help. I can't figure out how to align the header inside the div. I can't change the min height to adjust. What is wrong? I've also added an image of the issue.
HTML:
<div class="introbox-one header"> <h1 class="header">HEY! THIS IS A HEADER</h1> </div>
CSS:
.introbox-one { width: 80%; height: 16px; border: 1px solid #9A00FF; padding: 10px; background-color: #9A00FF; animation: introbox-one 1s ease-in; } @keyframes introbox-one { 0% { transform: translateX(-100%); } } .header { display: flex; justify-content: flex-end; color: white; font-size: 2.6rem; }
Attachment | Size |
---|---|
Screenshot (93).png | 5.53 KB |