How to make CSS3 rounded corners hide overflow in Chrome/Opera

后端 未结 13 1718
无人及你
无人及你 2020-11-22 09:10

I need round corners on a parent div to mask content from its childen. overflow: hidden works in simple situations, but breaks in webkit based browsers and Oper

13条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 09:54

    I tried every answer but without success. After few hours of investigating I found solution for this problem. Using this properties in your class will not allow div elements to overflow the container.

    .container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }
    

提交回复
热议问题