Yeah, I ran into this too, quite some time ago.  The first whitespace
character will be displayed by html, though all subsequent ones will be
ignored.  The thing to do is just get used to it.  Or use a table, which is
usually more sensible anyways, as it gives you more control.

Mike


"Michael Zornek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok so in my HTML I have:
>
> <img src="img/tab_1l.gif" width="9" height="24">
> <img src="img/home_on.gif" width="80" height="24">
> <img src="img/tab_10.gif" width="15" height="24">
>
> but because they are on separate lines with spaces, I get spaces rendered
on
> the screen. If I write the code like:
>
> <img src="img/tab_1l.gif" width="9" height="24"><img src="img/home_on.gif"
> width="80" height="24"><img src="img/tab_10.gif" width="15" height="24">
>
> I get no spaces but it's harder to read ....
>
> anyone know of a way to tell  html to ignore these spaces?
>
> I could in theory do something like this in PHP:
>
> $buffer .= '
>     <img src="img/tab_1l.gif" width="9" height="24">
>     <img src="img/home_on.gif" width="80" height="24">
>     <img src="img/tab_10.gif" width="15" height="24">
> ';
>
> $buffer = someFunction($buffer);
> // this function kills all spaces and new lines in between ">" and "<"
chars
>
> but it seems like kind of a hassle for readability.
>
> Please help.
>
> ~ Mike
> --
> Mike Zornek | Project Leader
> Apple Student Developers
> The Insanely Great Site with the Insanely Long URL
> http://www.applestudentdevelopers.org
>
> Personal Site:
> http://www.mikezornek.com
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to