-1

I want to code a border like in the picture.

enter image description here

p{
  border: 1px solid green;
}
<div class="container">
  <p>Some texts</p>
</div>
Harry
  • 87,580
  • 25
  • 202
  • 214
Lams
  • 1
  • 2
    Welcome to StackOverflow. Have a look at [this thread](http://stackoverflow.com/questions/30299093/speech-bubble-with-arrow) for ideas. – Harry May 31 '15 at 13:11

1 Answers1

0

.speechbubble{
    height:100px;
    width:100px;
    border:1px solid green;
    position:relative;
    background-color:white;
    border-radius:5px;
}

.speechbubble:after{
    height:10px;
    width:10px;
    border: 1px solid green;
    border-left:1px solid white;
    border-bottom:1px solid white;
    position:absolute;
    content:"";
    top:50px;
    right:-6px;
    transform:rotate(45deg);
    background-color:white;
}
<div class="speechbubble"></div>

Here's also a working fiddle

Okku
  • 7,468
  • 4
  • 30
  • 43