Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 495079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:33:33+00:00 2026-05-13T05:33:33+00:00

I am currently testing this function in all browser using php. <style> #preview_desc{ text-wrap:

  • 0

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

–Edited–
note: sorry bout this appereance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:33:33+00:00Added an answer on May 13, 2026 at 5:33 am

    I am using Opera 10.10 also, I can regenerate your problem, but unfortunately I don’t have good/proper answer, but a hack here. Do it If there is no other way. Put following codes to end of the document.

    <script>
         x=document.getElementById("preview_desc");
         x.innerHTML=x.innerHTML.replace(/(.)/g,"$1\u200b");
    </script>
    

    It will put \u200b (Zero Width Space) character after every characters, so Opera would able to handle that..

    UPDATE: Only add \u200b to long words, currently set as 10+, you may need to adjust it.

    <script>
        x=document.getElementById("preview_desc");
        x.innerHTML=x.innerHTML.replace(/[\w]{10,}/g,function(x){return x.replace(/(.)/g,"$1\u200b");});
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently testing this in Mozilla FireFox 3.0.5 using FireBug 1.3.0 with jQuery
I am currently using NUnit and testing a class library. Up until now, I
The company I'm currently working for is using Selenium for Uniting-Testing our User Interface.
I've been trying to implement unit testing and currently have some code that does
We currently use LoadRunner for performance testing our web apps, but we also have
Our company is currently writing a GUI automation testing tool for compact framework applications.
I'm currently doing some GUI testing on a ASP.net 2.0 application. The RDBMS is
currently, I am looking deeper into testing techniques, even though I am not sure
I'm currently in the process of testing our solution that has the whole gamut
I'm currently looking into unit testing for a new application I have to create.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.