You are here: Re: HTML - problem with white spaces « HTML « IT news, forums, messages
Re: HTML - problem with white spaces

Posted by kklk on 10/12/05 01:32

well... looks like people like to increase problems and complex things.

HTML does not care about white spaces in the code...
so writting
....<td>
a
b
c
</td>
and
....<td>abc</td>...

will look exactly the same on the browser : you'll see : abc

if you want : a b c
you need to tell to browser that you actually want a white space

the specific code for a white space is &nbsp;
so
having

a&nbsp;b&nbsp;c

will look like : a b c

hope it help.

++
R.




<Piotr.Ozaist@gmail.com> a ιcrit dans le message de news:
1129053246.203436.226360@g44g2000cwa.googlegroups.com...
> Hi everybody,
> I've got a problem with html.
> Does anybody know what I have to do (special tag, some styles) if I
> want that html code like:
> <html>
> <body>
> <table>
> <tr>
> <td>
> a
> b
> c
> </td>
> </tr>
> </table>
> </body>
> </html>
> will produce
> "abc"
> not
> "a b c"
>
> I know that this white spaces comes from new line char, but I want to
> remove them and I the content of <TD> tag have to be written like in
> example above.
>
> I tried some styles, tags like <NOBR> but it doesn't work.
> Please help :)
>
> Ozi
>

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация