8
bostonfern
175d

Turns out `white-space: nowrap` takes priority over every single other layout property used to constrain width and overflow, including these:

overflow
width
max-width
grid-template-column

But hey, CSS doesn't suck, you're just bad at it!

Comments
  • 1
    What. no-wrap doesn't set the width.
  • 3
    It does not. The size of the container will be whatever properties you set it.
    The text just will not be wrapped, essentially clipping out of the bounds of the object.

    It's intended behavior and always was that way.
  • 1
    🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣

    😳😳😳😳

    😳😳😳😳

    😳😳😳😳
  • 2
    @msdsk @thebiochemic they mean content width not container width…
Add Comment