Re: [PHP] HTML issue... spaces in between images
Try adding border="0" to each one. Some browsers would render your code as is without spaces, some will not. They are all supposed render it without spaces, and I think all the latest versions of the browser do. It's the older ones you have to worry about. Also, do you have a DOCTYPE declaration as your first line in all your documents? If you don't, then even the newer browsers will fall back into compatible mode, which usually means "supporting" the bugs that existed in older versions. Check out www.alistapart.com, www.webmonkey.com, or www.webreference.com for info on DOCTYPE and style sheets. I do remember reading an article specifically discussing the problem you are experiencing. On Monday, August 12, 2002, at 09:26 PM, Michael Zornek wrote: > Ok so in my HTML I have: > > > > > > but because they are on separate lines with spaces, I get spaces > rendered on > the screen. If I write the code like: > > src="img/home_on.gif" > width="80" 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 .= ' > > > > '; > > $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 > > -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML issue... spaces in between images
On Tue, 2002-08-13 at 02:29, Matt Babineau wrote: > > > > > > > > Which leads to other "mysterious" gaps (that are again part of the HTML spec), the fix is provided here: http://developer.netscape.com/evangelism/docs/articles/img-table/ James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML issue... spaces in between images
> -Original Message- > From: Michael Zornek [mailto:[EMAIL PROTECTED]] > Sent: 13 August 2002 02:26 > > Ok so in my HTML I have: > > > > [] > 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: Another technique I use quite a bit is newlines *inside* the HTML tags, thus: 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: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML issue... spaces in between images
Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message- From: Michael Zornek [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 9:26 PM To: [EMAIL PROTECTED] Subject: [PHP] HTML issue... spaces in between images Ok so in my HTML I have: but because they are on separate lines with spaces, I get spaces rendered on the screen. If I write the code like: 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 .= ' '; $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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTML issue... spaces in between images
Ok so in my HTML I have: but because they are on separate lines with spaces, I get spaces rendered on the screen. If I write the code like: 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 .= ' '; $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