How to make the overflow CSS property work with hidden as value

后端 未结 6 1230
南方客
南方客 2020-11-30 22:21

I am having a tough time with overflow: hidden.

Basically, I am trying to hide the overflow of an unordered list which is located in a

6条回答
  •  独厮守ぢ
    2020-11-30 22:29

    Evidently, sometimes, the display properties of parent of the element containing the matter that shouldn't overflow should also be set to overflow:hidden as well, e.g.:

    some text that should not overflow

    Why? I have no idea but it worked for me. See https://medium.com/@crrollyson/overflow-hidden-not-working-check-the-child-element-c33ac0c4f565 (ignore the sniping at stackoverflow!)

提交回复
热议问题