I have an editable span with rounded corners as shown in the picture below. As you can see, the text runs off the corner and I would love a way to keep the text inside the box. is there a good way to do this? I don't want to add padding that goes all the way down the sides or across the top, I really just want to avoid the corners with border-radii. Here is a JSFiddle demonstrating the current state.
Current CSS:
#container {
box-sizing: border-box;
position: absolute;
transition: border 0.2s;
border: 2px solid rgba(128, 223, 255, 0);
border-radius: 7px;
display: table-row;
height: 200px;
width: 300px;
}
.typeSpace {
background-color: green;
display: inline;
position: absolute;
bottom: 0;
text-align:center;
white-space: nowrap;
left: 10px;
right: 10px;
overflow: auto;
-ms-overflow-style: none;
overflow-y: hidden;
text-align: left;
}
#borderText {
left: 0;
right: 0;
bottom: 0;
top: 0;
font-size: 17px);
white-space: normal;
line-height: 15px);
border-radius: 20px 20px 0 0;
}