Forum Moderators: open

Message Too Old, No Replies

Image borders

         

wmwu

5:54 pm on Jun 4, 2002 (gmt 0)

10+ Year Member



i need an image banner to be displayed without
gap between it and the following table, but
couldn't get it right.
the idea is similar to the mysql site, in which
case the white banner color is same as bg.
if I use the banner and the menu inside a table,
still a pixel heigh gap occurs.
the problem goes away if i make the banner as the
background for the table element, but that is not
standard compliant.
can anybody show me a 4.01 compliant code to get
this working.

Nick_W

5:58 pm on Jun 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put this in your styles, Modern browsers don't like table layouts and images:

td img {
display: block;
}

Nick

wmwu

2:05 am on Jun 5, 2002 (gmt 0)

10+ Year Member



thanks Nick_W, is there a way for N4.78, this doesn't help with it.
there ought to be a way with plain html, without css, i hope!

tedster

4:13 am on Jun 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Netscape 4 sometimes adds a gap when you have a hard return (or even a space) in your HTML code. You can try bumping the table tag right up against the image tag, all on one line.

wmwu

6:39 am on Jun 5, 2002 (gmt 0)

10+ Year Member



whoa! tedster! you the man! it worked!