Wednesday, 15 April 2015

css - box has a radius on the border but enclosed background color goes outside this -



css - box has a radius on the border but enclosed background color goes outside this -

i'm on chrome (38.0.2125.101) , have looks this:

the css is:

.if-container{ border: 1px solid black; border-radius: 12px; width: 400px; } .social-row{ background-color: yellow; padding: 5px 20px 10px 10px; }

how create css of embedded element clipped container (or prepare it)?

thx

the .social-row <div> overflowing outside of parent container. add together stylesheet:

.if-container { overflow: hidden; }

css

No comments:

Post a Comment