Presently, I have this specific designhttps://i.sstatic.net/U4IT4.png
The issue I am facing is with the alignment of the jumbotron (boostrap v5). It is currently centered, but I would like it to be positioned at the very top of the body. I have experimented with margin, display, and align properties without success so far.
Here is the portion of the code I am working with:
body {display: flex;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.jumbotron {
padding: 2rem 1rem;
margin: 0 auto;
width: 100%;
background-color: #e9ecef;
border-radius: .3rem;
}
When I remove the align-items:center from the body, the jumbotron moves to the top as desired, but its height expands to fill almost the entire body. Any idea why this is happening? How can I maintain the jumbotron's original size while aligning it at the top?
Appreciate any help on this. Thank you!