Wrapping Long URLs that is inside A tag

I wanted to wrap long line/URL in an A tag, we surely did not wish to apply it for the p tag, or any other tag as such.

So the following solution worked well for me, note the “display:inline-block”.

.content p a{
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
display: inline-block;
}

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark