You are here: prevent line end translate into white space « HTML « IT news, forums, messages
prevent line end translate into white space

Posted by Greg N. on 11/10/67 11:22

The line end character translates into white space:

<span style="background: red;">X</span>
<span style="background: blue;">Y</span>
<span style="background: green;">Z</span>

This code generates three text boxes, separated by white spaces. If
that's not what you want, you can prevent it this way:

<span style="background: red;">X</span><span
style="background: blue;">Y</span><span
style="background: green;">Z</span>

That works fine, but the code looks messy. Is there a clean way to have
the browser *not* translate the line end into white space?

--
Gregor's Motorradreisen:
http://hothaus.de/greg-tour/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация