RE: [PHP] HTML issue... spaces in between images

From: Date: Tue, 13 Aug 2002 01:29:43 +0000
Subject: RE: [PHP] HTML issue... spaces in between images
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112226@lists.php.net to get a copy of this message
<TABLE> <TR> <TD><IMG SRC="/images/image.gif"></TD> <TD><IMG SRC="/images/image.gif"></TD> <TD><IMG SRC="/images/image.gif"></TD> <TD><IMG SRC="/images/image.gif"></TD> </TR> </TABLE> Matt Babineau MCWD / CCFD ----------------------------------------- e: matt@criticalcode.com p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -----Original Message----- From: Michael Zornek [mailto:mikezornek@mikezornek.com] Sent: Monday, August 12, 2002 9:26 PM To: php-general@lists.php.net Subject: [PHP] HTML issue... spaces in between images 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

« previous php.general (#112226) next »