I would like to have a line break before and after or word in the content text. I tried with word-spacing, but that did not give me the exact style I wanted. I also tried to put \A, and it just shows A on the text. Is there way to achieve my goal?
Expected:
Actual:
#t {
height: 153px;
width: 401px;
border: 1px dashed #5fb6c5;
background-color: #f8f8f8;
}
#t:after {
content: attr(data-text);
font-size: 14px;
line-height: 19px;
color: #000;
opacity: 0.30;
position: relative;
width: 100%;
height: 100%;
display: block;
top: 50%;
white-space: pre-wrap;
vertical-align: middle;
text-align: center;
}
<div id="t" data-text="Drag your image here or Click to add" />
