To make text align to the top within a flex container, you can use the align-items property and set it to flex-start. This will align the text to the top of the flex container. Here's an example:
.container {
display: flex;
align-items: flex-start;
}