skip to Main Content

Css – Push Button to the bottom of container (justify-self-end Not working)

I want to push the button to the end of the flex container Components Code <div className="group flex flex-col gap-4 rounded-2xl bg-brand-white p-4 shadow-card"> <div className="relative overflow-hidden rounded-2xl"> { ...JSX } </div> <p className="text-brand-black/80">{shortDescription}</p> <Button as={Link} href={link} variant="sm-inverted" className="w-fit justify-self-end"…

VIEW QUESTION

Html – Aligning two elements to the center

How can I make "question" vertically center-aligned with "answer-text", but not with "submit-answer-button"? .question-container { display: flex; flex-direction: column; align-items: center; } .answer-container { display: flex; justify-content: center; } <div class="question-container"> <div id="question">6 x 2</div> <div class="answer-container"> <input type="text" id="answer-text">…

VIEW QUESTION
Back To Top
Search