Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS triangle side with round on left?

Tags:

html

css

I'm trying to create this as below and couldn't finish it.

I can only manage to create a rounded corners on left but not slanted right.

align top
(source: kerrydeaf.com)

#talkbubble
 {
width: 100px;
height: 35px;
background: #FFCC05;
position: relative;
-moz-border-radius:8px 0 0 8px;
-webkit-border-radius:8px 0 0 8px;
border-radius:8px 0 0 8px;
margin-right:50px;
 }

Or here is http://jsfiddle.net/alma/USezL/23/

like image 561
Irishgirl Avatar asked Nov 25 '12 22:11

Irishgirl


1 Answers

i think this is what u are looking for http://css-tricks.com/snippets/css/css-triangle/

http://jsfiddle.net/zQKhb/

#talkbubble 
{ 
    width: 100px;
    height: 36px;
    background: #FFCC05;
    position: relative;
    -moz-border-radius:8px 0 0 8px;
    -webkit-border-radius:8px 0 0 8px;
    border-radius:8px 0 0 8px;
    margin-right:50px;

} 

#talkbubble:before
{
    content:"";
    display:block;
    position: absolute;
    right: -36px;
    top:0;
    width: 0;
    height: 0;
    border: 18px solid transparent;

    border-color: transparent transparent #FFCC05 #FFCC05;
}
​
like image 192
Rene Koch Avatar answered Sep 23 '22 14:09

Rene Koch