To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 1000
999  |  1001
Subject: 
Re: Problem with this code
Newsgroups: 
lugnet.publish
Date: 
Thu, 30 Sep 1999 03:50:38 GMT
Viewed: 
392 times
  
Thanks to all!

Bram got it.  It is the line breaks after the <IMG....> that was giving
another space under each of the images.

I seem to like the nested indents for organizing my code, but is there a
standard method, or is it personal preference "as long as it works"?

Cheers,
LINC


Bram Lambrecht <braml@juno.com> wrote in message
news:19990929.163036.5095.3.braml@juno.com...
"Linc Smith" <ldsmith@pfc.forestry.ca> writes:
So if you are still reading... I can't seem to get the images to fit
together tightly.  There seems to be a gap (border or whatever) under?
each image.  This can be seen if you open this code.  I don't know how • to
get the table to fit together without these seams :(
...
   <TR>
    <TD colspan="3" border="0" WIDTH="640" HEIGHT="25" • BGCOLOR="#0080c0">
     <IMG SRC="paper_edge_top.gif" WIDTH="640" HEIGHT="25" ALT="top • edge
     of page border">
    </TD>

The problem is the spaces and line breaks before and after the image.
Change the above lines to the following and do the same for the other
images:

<TR>
<TD colspan="3"
    border="0"
    WIDTH="640"
    HEIGHT="25"
    BGCOLOR="#0080c0"
<IMG SRC="paper_edge_top.gif"
      WIDTH="640"
      HEIGHT="25"
      ALT="top edge of page border"
</TD>
</TR>

As you can see, there are now no spaces between the <TD><IMG></TD>.
(You could of course put the whole thing on one line instead of 12 like I
did, but I think the code is really easy to read this way.)
--Bram


Bram Lambrecht           / o   o \           BramL@juno.com
-------------------oooo-----(_)-----oooo-------------------
    WWW:   http://www.chuh.org/Students/Bram-Lambrecht/
-----------------------------------------------------------






Message has 1 Reply:
  Re: Problem with this code
 
(...) There's no standard for code organization, but indeting seems pretty common. "tidy.exe" from (URL) is great for organizing code in a readable fashion (it can also standardize capitalization, fix illegal HTML, etc.) My only complaint is that it (...) (25 years ago, 30-Sep-99, to lugnet.publish)

Message is in Reply To:
  Re: Problem with this code
 
(...) to (...) BGCOLOR="#0080c0"> (...) edge (...) The problem is the spaces and line breaks before and after the image. Change the above lines to the following and do the same for the other images: <TR> <TD colspan="3" border="0" WIDTH="640" (...) (25 years ago, 29-Sep-99, to lugnet.publish)

7 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR