Kush Sahu
Kush Sahu

Reputation: 399

Text wrap working in firefox but not in IE

Hi I want to wrap a link text. I tried using following css class.

.abc{
    width: 185px;
    word-break: break-all;
    word-wrap: break-word;
 }

It works fine in firefox, but its not working for IE9 and IE8.

I searched many places for solution but there they have suggested the same above css.

Upvotes: 0

Views: 212

Answers (1)

Rajnikant Kakadiya
Rajnikant Kakadiya

Reputation: 2265

Please add display:table property and remove break-all. It will work in all browser.

.abc{
width: 185px;
word-wrap: break-word;
display:table;
}

Upvotes: 1

Related Questions