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

Posted by jlbdoc95 on 11/11/69 11:22

See if this will fit the bill for you:

<div style="background: red; display: inline;">X</div>
<div style="background: blue; display: inline;">Y</div>
<div style="background: green; display: inline;">Z</div>


"Greg N." <yodel_dodel@yahoo.com> wrote in message
news:dc802v$o1j$1@online.de...
> 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

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