Mdhar9e Mdhar9e - 1 month ago 15
CSS Question

Break the lines inside the div tag

with the below code i am able to see the line break in the chrome, but not in IE.
i just want the same behaviour in IE too.



break {
white-space: pre;
}

<div class="ft13" style="padding-top: 15px" display:inline-block;>
<break>
Another difference between the source files of C++ and the source files of Java is that Java source is written in Unicode,
a 16-bit international character set standard. If you create an ASCII source file, the Java compiler will treat the ASCII characters as if they were the equivalent Unicode characters. This will be discussed at greater length in Chapter 3.
</break>
</div>





in IE the above text is displaying like:(without breaks of lines)

Another difference between the source files of C++ and the source files of Java is that Java source is written in Unicode, a 16-bit international character set standard. If you create an ASCII source file, the Java compiler will treat the ASCII characters as if they were the equivalent Unicode characters. This will be discussed at greater length in Chapter 3.

Answer
<style type="text/css">
  .break {
    white-space: pre;
  }
</style>

<div class="ft13" style="padding-top: 15px; display:inline-block;">
  <div class="break">
    Another difference between the source files of C++ and the source files of Java is that Java source is written in Unicode,
  </div>
  <div class="break"> 
    a 16-bit international character set standard. If you create an ASCII source file, the Java compiler will treat the ASCII characters as if they were the equivalent Unicode characters. This will be discussed at greater length in Chapter 3.
  </div>
</div>
Comments