Incorporating Bootstrap 5 framework, I have designed a card that showcases brand information along with a navigation button on the right side.
https://i.sstatic.net/25QVr.png
When the description is brief, the button aligns perfectly in a single line. However, when the description lengthens, the button breaks into multiple lines.
https://i.sstatic.net/uxdMQ.png
I aim to keep the button width restricted to one line only and make it adjust its size based on the content within, while allowing the description to occupy the remaining space.
Can this layout be achieved using flex properties?
Access the Codepen demo here
I attempted fixing the button width but encountered issues with adjusting according to inner content. I also experimented with adding `
` tags within the description, resulting in excess blank spaces on larger screens.