How do i strech the size of this element
I want to strech so that if when the title container is thicker the close button has the same height and also so that the close button always have the same width as height.
4 Replies
.navContainer {
display: flex;
gap: 5px;
margin-bottom: 10px;
align-items: center;
}
.close-btn {
background-color: #161616;
flex-grow: 1;
padding: 15px;
border-radius: 5px;
text-align: center;
font-weight: bold;
}
.this is where the wierd text is/error {
width: 100%;
padding: 15px 10px;
}
Can't tell for certain without seeing an actual example with HTML (usually a codepen is recommended) but assuming the alert and the X button are in the navContainer, remove
align-items:center
or change it to stretch
Yhe tried it but it just got fucked thanks tho im gona try later and put into code pen