View Full Version : Name That Gap!?!
i cant figure out why there are gaps surrounding a couple of the images on the main page of my website (www.reefscavengers.com). the gaps are surrounding the image on the top left (newlayout1_01.gif), as well as the small link buttons along the top right. the gaps only show up in IE 7; not ff or older IE. Please help if you can!
djr33
10-04-2007, 03:15 AM
First basic guess, make sure there is a border of 0 on each image.
CSS (or add the tags):
img {
border: 0;
}
yes i tested to see if that was the issue by adding a border="0" to one of the images with gaps but that didnt solve it.
Trinithis
10-04-2007, 05:39 AM
Try :
img {
border-collapse: collapse;
border-width: 0px;
border-style: none;
padding: 0px;
margin: 0px;
}
If it works, try removing one of those styles one at a time because they may be redundant. (I don't have IE7.)
ok i tried that and took one line out at a time but still didnt get rid of the gaps. After looking at it a little closer i think the problem is with the image titled "newlayout1_10.gif" (the image on the top right that includes the credit card logos). It seems that this image is slightly shifted down in its table cell, creating a gap above it and below the image next to it in the same row. so i dont think the problem is with the actual images, but instead with the table?
jscheuer1
10-04-2007, 03:05 PM
Looks fine to me in IE 7.
ok not sure if its IE 7, whatever the latest verson of IE is is where its showing up with the gaps.
anyone else see it?
jscheuer1
10-05-2007, 04:05 PM
IE 7 is the latest. I just didn't notice it because it is rather slight. I see it now though, and also see it in IE 6, though not in FF or Opera. Opera has some other issues with the layout. You have invalid HTML here:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<td colspan=2>
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="orders@reefscavengers.com">
<input type="image" src="images/newlayout1_09.gif" align="center" border="0" width="42" height="19" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</td>
</form>
It should be:
<td colspan=2>
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="orders@reefscavengers.com">
<input type="image" src="images/newlayout1_09.gif" align="center" border="0" width="42" height="19" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</form>
</td>
Then the problem shows up in all browsers, which is actually a good thing, because now we can reliably fix it:
<td colspan=2>
<form style="margin:-3px 0;" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="orders@reefscavengers.com">
<input style="position:static!important;position:relative;top:1px;" type="image" src="images/newlayout1_09.gif" align="center" border="0" width="42" height="19" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</form>
</td>
<TD>
benslayton
10-05-2007, 04:22 PM
yea that form is definately screwin up the top row, if you can do anything with that i would suggest movin it somewhere else...
jscheuer1
10-05-2007, 04:47 PM
yea that form is definately screwin up the top row, if you can do anything with that i would suggest movin it somewhere else...
My above method of dealing with it is fine for all modern major browsers, but the problem in Opera persists and is unrelated to the form. There is most likely something off in the cell count in one or more rows.
These table based 'image ready' type layouts are cumbersome, both in byte load and whenever one tries to modify them. They also play poorly on monitors whose size and resolution are such to cause the 'text' to be illegible due to small size.
excellent, best help on this forum!
jscheuer1
10-06-2007, 05:44 AM
I was killing some time waiting on a friend and finally realized what the problem with Opera was:
<TD COLSPAN=9 ROWSPAN=6>
<iframe src="http://www.reefscavengers.com/home.html" name="frame1" allowtransparency="true"
align="left" frameborder="0" height="289" scrolling="yes" width="599"><IMG SRC="http://reefscavengers.com/images/newlayout1_18.gif" WIDTH=599 HEIGHT=289 ALT=""></iframe></TD>
The align left attribute is virtually meaningless for iframe, though some browsers may align it left by default or guess at the meaning.
It should be:
<TD align="left" COLSPAN=9 ROWSPAN=6>
<iframe src="http://www.reefscavengers.com/home.html" name="frame1" allowtransparency="true"
frameborder="0" height="289" scrolling="yes" width="599"><IMG SRC="http://reefscavengers.com/images/newlayout1_18.gif" WIDTH=599 HEIGHT=289 ALT=""></iframe></TD>
That makes its meaning clear to all browsers. The iframe's scrolling attribute should be set to auto.
The two next items were not crucial -
I also noticed that at the end of the first row there is an extra cell:
. . . eight="19" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</form>
</td>
<TD>
<IMG SRC="http://reefscavengers.com/images/spacer.gif" WIDTH=1 HEIGHT=19 ALT=""></TD>
</TR>
That may safely be removed, and that to truly round out the last row, a cell like so:
<TD>
<IMG SRC="http://reefscavengers.com/images/spacer.gif" WIDTH=49 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="http://reefscavengers.com/images/spacer.gif" WIDTH=42 HEIGHT=1 ALT=""></TD>
<td><IMG SRC="http://reefscavengers.com/images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></td>
</TR>
</TABLE>
should be added.
very appreciative, i can always trust your advice.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.