Click to See Complete Forum and Search --> : Extra Margin with Firefox Not with IE


singltrk24
10-27-2008, 08:23 AM
Hi All,

Can anyone figure out why I'm getting some extra margin-bottom (3px) in Firefox, but not in IE 6? I have looked at this from every angle but to no avail.

The extra margin (I think it's margin) appears below the image contained in the catImage div (no it's not an image of a cat) and is about 3px high.

There are other images contained within the focusArea div that this does not happen to and I have control over.

Here's the page code:

<div class="focusArea" style="margin:0px">
<div class="catImage" style="margin:0px">
<img src="../img/landing/img1_vector.gif" alt="Image" width="240" height="135" style="margin:0px"/>
</div>
<div class="quote" style="margin:0px">
<p id="quote" style="margin:0px">Some great things to say.</p>
<p id="ref" style="margin:0px">Some Guy<br>Some Title<br>Some Company<br>Some Location</p>
</div>
<div class="links" style="margin:0px">
<p><a href="transcription.asp" id="transcription">Transcription Platforms</a></p>
<p><a href="speech.asp" id="speech">Real-Time Speech Recognition</a></p>
<p><a href="testResults.asp" id="testResults">Critical Test Results Management</a></p>
</div>
</div>

BTW I added the style directly to the divs etc, trying to get rid of the margin.

Here's the CSS:

/* Right Column flash and links */
.focusArea {
margin: 0px;
padding: 0px;
width: 240px;
}

.focusArea .catImage {
padding: 0px;
border-bottom: solid 3px #fff;
margin: 0 0 0 0;
}

.focusArea .quote {
background-color:#353c4e;
padding: 10px 10px 10px 10px;
color:#fff;
border-bottom: solid 3px #fff;
margin: 0px;
font-size:1.15em;
font-weight:normal;
}


.focusArea .quote img{
float:left;
}

.focusArea .quote p#quote {
font-style:normal;
}

.focusArea .quote p#ref {
margin-top:10px;
text-align:right;
font-style:italic;
}



.focusArea .links p a {
display: block;
height:85px;
text-indent:-9000em;
margin: 0 0 3px 0;
}

.focusArea .links p a#transcription {
background: url(../../img/landing/transcriptionLanding.jpg) top left no-repeat;
}

.focusArea .links p a#speech {
background: url(../../img/landing/speechLanding.jpg) top left no-repeat;
}

.focusArea .links p a#radiology {
background: url(../../img/landing/radiologyLanding.jpg) top left no-repeat;
}

.focusArea .links p a#testResults {
background: url(../../img/landing/criticalLanding.jpg) top left no-repeat;
}

Thanks in advance for your help.

_t

Fang
10-27-2008, 10:18 AM
p {margin:0;}

singltrk24
10-29-2008, 09:31 AM
Thanks for the attempt Fang, but no luck.

I added: p {margin:0;}

To the stylesheet and it did not remove the extra margin.

Any other thoughts?

_t

Fang
10-29-2008, 10:13 AM
img {vertical-align:bottom}

singltrk24
10-29-2008, 12:52 PM
YES! That did the trick.

Thank you Fang.

_t