Mam mały problem z CSS 3, mianowicie stworzyłem taki obiekt z pojedynczym przedmiotem. Oto obraz tego, co chcę osiągnąć:CSS 3 - zaokrąglone narożniki po i przed stanami
Oto co ja:
CSS:
body{
background:grey;
padding:10px;
}
#talkbubble {
margin:0 auto;
box-shadow: 3px 10px 7px #deefe5;
width: 590px;
height: 160px;
background: white;
position: relative;
border-radius:10px;
border-bottom-left-radius:0px;
}
#talkbubble:before {
box-shadow: 10px 10px 5px #deefe5;
content:"";
position: absolute;
background:white;
top: 100%;
width: 228px;
height: 62px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
#talkbubble:after{
content:"";
position: absolute;
top:100%;
left:228px;
border-top: 10px solid white;
border-right: 10px solid transparent;
background:white;
}
HTML:
<div id="talkbubble"></div>
Jak zaokrąglić kąt między dwiema częściami?
Nie jestem pewien, ale to może pomóc: http: // www .w3.org/TR/css3-background/# corner-clipping – Victor
Nie możesz. blisko pytanie. –