Manuel Reimer wrote:
Hello,
my problem is that spaces are always reduced to the size of one in html.
I need some trick to make all spaces in a line visible.
Something like this is possible with "<pre>" in HTML, but with this I
get my newlines twice as "<pre>" interprets newlines *and* "<br>" (and
no, in my case it's not easy to get rid of the "<br>").
Is something like this possible?
Thank you very much in advance
CU
Manuel
Manuel,
In HTML, multiple consecutive spaces are compressed into one by default.
There are two ways to avoid this:
- Avoid multiple consecutive spaces by using the character
entity reference, e.g. I want to leave lots of
space in here.
- Alter the default behavior with CSS, by specifying white-space. See
http://www.w3.org/TR/CSS21/text.html...ef-white-space. Some options
may not work on all browsers; you'll have to do some testing.
Chris Beall