Hi guys i have created circle using CSS shape.
I have used contentEditable="true"
so the content of the circle can be edited.
The problem here is now when I edit the text inisde the circle it is going outside of the circle. What I am trying to do is when I add extra text the text should automatically move to next line inside the circle itself. I don't want to increase the width and height of the circle. Can anyone help me where I did mistake. Here is my code :
.circle {
width: 50px;
height: 50px;
background-color: #40a977;
border-radius: 50%;
float: left;
shape-outside: circle();
}
<div contentEditable="true" class="circle">circle</div>
Can anyone help me where i did mistake.Thanks in advance.