Subject:
|
Re: Problem with this code
|
Newsgroups:
|
lugnet.publish
|
Date:
|
Wed, 29 Sep 1999 22:57:26 GMT
|
Viewed:
|
396 times
|
| |
| |
"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
|
| 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 (...) (25 years ago, 30-Sep-99, to lugnet.publish)
|
Message is in Reply To:
| | Problem with this code
|
| OK, I am trying to make a template page for my site. The basic layout is a 640x800 table with three rows and three columns. The top row is a colspan="3", as is the third row. The second row contains three cells across. The top row contains an (...) (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
|
|
|
|