loamguy1
11-24-2008, 12:02 AM
I have a rounded-cornered box that appears correctly in both IE7 and Firefox, but Safari is showing a one-pixel line of padding between the top of the box and content beneath it.
The box is consisted of basically two DIVs, the "top" which is merely a 7px high rounded-corner image, and the "bottom" which is a DIV consisting of the gradient background.
Here's the webpage in question: http://loamband.com/gid.php The problem is in the rounded box on the right side of the page just above "Grief is Dead."
The 1px light-green line separating the top from the bottom is part of the "top" DIV. I added a border for testing to determine this. I have padding of 0px in this div, so I'm not sure where the problem is coming from...
Is this a known issue in Safari? If so, does anyone know the fix? Do I need negative padding?
Here's the HTML for the box:
<div id="trackbox">
<div id="trackbox_top"> </div>
<div id="trackbox_bottom">
<h1>Grief is Dead (2007):</h1>
<table class="tracklist">
<tr>
<td>1</td>
<td><a href="I'm Sold.mp3">I'm Sold</a> (Full version)</td>
</tr>
<tr>
<td>2</td>
<td> <a href="Reverie%20Mine.mp3">Reverie Mine</a></td>
</tr>
<tr>
<td>3</td>
<td> <a href="The%20Snow.mp3">The Snow</a></td>
</tr>
<tr>
<td>4</td>
<td><a href="Down%20My%20Lane.mp3">Down My Lane</a></td>
</tr>
<tr>
<td>5</td>
<td><a href="Loose%20Change.mp3">Loose Change</a></td>
</tr>
<tr>
<td>6</td>
<td><a href="I%20Want%20To%20Say%20Goodbye.mp3">I Want To Say Goodbye</a></td>
</tr>
</table>
</div>
</div><!--trackbox-->
And the CSS:
#trackbox {
width:270px;
padding:5px;
}
#trackbox_top {
background: url(/images/track_gradient_top1.gif) no-repeat top left;
width: 272px;
padding:0px;
margin:0px;
line-height:7px;
}
#trackbox_bottom {
background: url(/images/track_gradient_bottom1.gif) no-repeat bottom left;
width: 272px;
padding:0px 0px 10px 0px;
margin:0px;
}
The box is consisted of basically two DIVs, the "top" which is merely a 7px high rounded-corner image, and the "bottom" which is a DIV consisting of the gradient background.
Here's the webpage in question: http://loamband.com/gid.php The problem is in the rounded box on the right side of the page just above "Grief is Dead."
The 1px light-green line separating the top from the bottom is part of the "top" DIV. I added a border for testing to determine this. I have padding of 0px in this div, so I'm not sure where the problem is coming from...
Is this a known issue in Safari? If so, does anyone know the fix? Do I need negative padding?
Here's the HTML for the box:
<div id="trackbox">
<div id="trackbox_top"> </div>
<div id="trackbox_bottom">
<h1>Grief is Dead (2007):</h1>
<table class="tracklist">
<tr>
<td>1</td>
<td><a href="I'm Sold.mp3">I'm Sold</a> (Full version)</td>
</tr>
<tr>
<td>2</td>
<td> <a href="Reverie%20Mine.mp3">Reverie Mine</a></td>
</tr>
<tr>
<td>3</td>
<td> <a href="The%20Snow.mp3">The Snow</a></td>
</tr>
<tr>
<td>4</td>
<td><a href="Down%20My%20Lane.mp3">Down My Lane</a></td>
</tr>
<tr>
<td>5</td>
<td><a href="Loose%20Change.mp3">Loose Change</a></td>
</tr>
<tr>
<td>6</td>
<td><a href="I%20Want%20To%20Say%20Goodbye.mp3">I Want To Say Goodbye</a></td>
</tr>
</table>
</div>
</div><!--trackbox-->
And the CSS:
#trackbox {
width:270px;
padding:5px;
}
#trackbox_top {
background: url(/images/track_gradient_top1.gif) no-repeat top left;
width: 272px;
padding:0px;
margin:0px;
line-height:7px;
}
#trackbox_bottom {
background: url(/images/track_gradient_bottom1.gif) no-repeat bottom left;
width: 272px;
padding:0px 0px 10px 0px;
margin:0px;
}