A row of buttons must move to a new line when there is not enough space. is happening in my site header. How can I solve it with CSS?

CSS Published Updated 0 Views Verified
Problem: A row of buttons must move to a new line when there is not enough space. Context: This CSS troubleshooting question uses a site header example. Correct approach: Enable flex wrapping. Working CSS: .actions { display:flex; flex-wrap:wrap; gap:10px; }
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

A. Common but incorrect approach

Use overflow:hidden
Additional Explanation
This approach does not directly implement the required CSS behavior.
Sarkari Resultess
Editorial Answer 1
Verified

B. Incorrect CSS alternative

Use white-space:nowrap
Additional Explanation
This is not a valid CSS property or does not solve the stated problem.
Sarkari Resultess
Editorial Answer 2
Verified Correct Answer

C. Correct CSS solution

.actions { display:flex; flex-wrap:wrap; gap:10px; }
Additional Explanation
Enable flex wrapping.
Sarkari Resultess
Editorial Answer 3
Verified

D. Another incorrect approach

Use flex-direction:column
Additional Explanation
This does not address the underlying CSS layout or styling issue.
Sarkari Resultess
Editorial Answer 4