0
0
Bootsrapmarkup~5 mins

Text wrapping and overflow in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the Bootstrap class .text-wrap do?
The <code>.text-wrap</code> class allows text to wrap onto the next line instead of overflowing outside its container.
Click to reveal answer
beginner
How does the Bootstrap class .text-nowrap affect text?
The <code>.text-nowrap</code> class prevents text from wrapping. All text stays on one line and may overflow its container if too long.
Click to reveal answer
beginner
What is the purpose of the Bootstrap class .text-truncate?
The <code>.text-truncate</code> class shortens text that is too long to fit in its container by adding an ellipsis (...) at the end.
Click to reveal answer
intermediate
Which CSS property does Bootstrap's .text-truncate rely on to show ellipsis?
It uses the CSS property text-overflow: ellipsis; combined with overflow: hidden; and white-space: nowrap;.
Click to reveal answer
beginner
Why is controlling text overflow important in web design?
Controlling text overflow keeps layouts neat and readable. It prevents text from spilling outside containers, which can break design and confuse users.
Click to reveal answer
Which Bootstrap class allows text to wrap onto multiple lines?
A.text-nowrap
B.text-truncate
C.text-wrap
D.text-break
What happens when you use .text-nowrap on a long text?
AText wraps to next line
BText becomes bold
CText is truncated with ellipsis
DText stays on one line and may overflow
Which class would you use to shorten overflowing text with an ellipsis?
A.text-truncate
B.text-nowrap
C.text-wrap
D.text-break
What CSS property is essential for showing ellipsis in truncated text?
Atext-overflow: ellipsis;
Boverflow: visible;
Cwhite-space: normal;
Ddisplay: block;
Why should you avoid letting text overflow its container?
AIt improves page loading speed
BIt keeps the layout clean and readable
CIt makes text bold
DIt changes font color
Explain how Bootstrap helps manage text wrapping and overflow in layouts.
Think about how text behaves when it is too long for its container.
You got /4 concepts.
    Describe the CSS properties behind Bootstrap's text truncation feature.
    These properties work together to hide overflow and show dots.
    You got /3 concepts.