yusfebri 0 Newbie Poster

I am currently testing this function in all browser using php.

<style>
#preview_desc{
text-wrap: suppress;
word-break: break-all;
word-wrap: break-word; /* IE>=5.5 */
white-space: -moz-pre-wrap; /* For Fx<=2 */
white-space: pre-wrap; /* Fx>3, Opera>8, Safari>3 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: pre-line;
width:158px;
padding-left:5px;
padding-right:5px;
line-height:12px;
font-family:'Arial', Helvetica, sans-serif;
font-size:11px;
text-align:justify;
background:#f30000;
}
</style>

<div id="preview_desc"
class="adlookmsg_box">
Refeforotherapplicationandcontainasdhlsakfhnaiufalsdufgnaloskdufglkjblfasug
</div>

However only in Opera browser that not process the wrapping or the unspace word. Please if any can help with this. Tks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.