aleph-zero wrote: > > I was hoping someone could tell me what I'm doing wrong. I'm putting a image > inside a table cell and I want the table cell to collapse so it only > contains the image: > > <table cellspacing="0" cellpadding="0" border="0"> > <tr> > <td bgcolor="red"><img src="images/Header/Head.png" height="58" > width="500" alt="Header" /></td> > </tr> > </table> > > This works fine in all browsers without any DOCTYPE declaration. However, as > soon as I add the doctype declaration, something like: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "DTD/xhtml1-transitional.dtd"> > > netscape 6 adds a four pixel space at the bottom of the table-cell. I've > been trying to work out how to get rid of this, using various styles and > doctypes, to no avail. Can anyone tell me how I can get rid of this unwanted > space? Use the style "display:block" or "vertical-align:bottom" for the image. See http://bugzilla.mozilla.org/show_bug.cgi?id=22274 . Clarence
Re: DOCTYPE/Table formating unwanted space
Clarence (Andreas M. Schneider) Mon, 27 Aug 2001 06:38:33 -0700
- DOCTYPE/Table formating unwanted space aleph-zero
- Re: DOCTYPE/Table formating unwanted ... aleph-zero
- Re: DOCTYPE/Table formating unwanted ... Clarence (Andreas M. Schneider)
- Re: DOCTYPE/Table formating unwanted ... Jason Johnston
- Re: DOCTYPE/Table formating unwan... aleph-zero