Forum Moderators: open

Message Too Old, No Replies

gap above table in Netscape 4.7, nowhere else

Netscape gap above table w/ styles

         

halfandhalf

8:24 pm on Oct 8, 2002 (gmt 0)

10+ Year Member



Why am I getting a gap above a table in Netscape 4.79? There's a large amount of whitespace after the top text, then the table starts way down the page. It's not aligned to bottom. This doesn't show up in IE or newer versions of Netscape. I am including a "class" for the font style within the <td>, is this setting it off?

tedster

10:15 pm on Oct 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello halfandhalf, and welcome to WebmasterWorld.

Netscape 4 has some oddities - it sometimes renders space on screen when there are linebreaks or spaces in the HTML.

Yes, HTML whitespace and line breaks are "supposed" to be ignored by the browser - but they're not always.

That's the firrt place I'd check.

dingman

12:59 am on Oct 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I even once had a page I was working on where the spacing in NN4 was changed by the difference between Unix and Windows text files. Oddly enough, there was more space with the one-character Unix line break than with two-character Windows line breaks. Drove me nuts, because I was just replacing the back-end scripting (writing PHP to replace Tango) and didn't want to have to mess with the HTML at all.

halfandhalf

1:11 pm on Oct 9, 2002 (gmt 0)

10+ Year Member



Thanks for your help, I think I figured it out. The class (for CSS) has to be in the <td> content, not within the actual <td> tag. Other browsers are okay with that, not this one though!

RussellC

1:27 pm on Oct 9, 2002 (gmt 0)

10+ Year Member



I have a similar problem with spacing in Netscape and Mozilla. I have something like this on one of my sites:

<td>
<br />
<a href="****.html"><img src="images/****.gif" alt="" width="***" height="1**" border="0" /></a>
<br />
<table class="side" width="100%" cellpadding="0" cellspacing="0">

I have no space between the image and the nested table in IE, but in Netscape and Mozilla I have a space. Any way to get rid of it?

Thanks for the help.

halfandhalf

1:41 pm on Oct 9, 2002 (gmt 0)

10+ Year Member



Try doing <a class="side" href="xxx.html"...
instead of <table class="side"...

RussellC

1:46 pm on Oct 9, 2002 (gmt 0)

10+ Year Member



Thanks for the suggestion. However, that class only has the border styles for the table so I dont think that would do the trick. :( Thanks though.

MCookie

10:45 pm on Oct 10, 2002 (gmt 0)

10+ Year Member



Tables are block elements and don't really need linebreaks. I think if you delete the <br> between the </a> and the table the space will be gone.

RussellC

1:40 pm on Oct 11, 2002 (gmt 0)

10+ Year Member



MCookie, I tried your suggestion but it then made a gap in both IE and NS. Very odd. Thanks for the suggestion.