Button text to wrap like inline spans

display:contents; can do this but you may lose more than what you will win (it can break the accessibility as well)

div {
  background-color: #ccc;
  padding: 10px;
  width: 150px;

button {
  border: 0;
  background: transparent;
  <span>Lorem ipsum dolor sit amet </span><button><span>Button with a long label</span></button>

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top