RE: [PHP] HTML issue... spaces in between images
| From: | Ford, Mike [LSS] | Date: | Tue, 13 Aug 2002 10:21:18 +0000 |
| Subject: | RE: [PHP] HTML issue... spaces in between images | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-112290@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Michael Zornek [mailto:mikezornek@mikezornek.com]
> Sent: 13 August 2002 02:26
>
> 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">
[....]
> anyone know of a way to tell html to ignore these spaces?
Well, the obvious one is HTML comments, since that's the way to tell HTML to
ignore anything:
<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">
Another technique I use quite a bit is newlines *inside* the HTML tags,
thus:
<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">
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211