lloydmav
07-27-2007, 09:55 AM
I'm having a recurring problem with white space around any of my images in internet explorer but not having the same problem in firefox. I've tried setting all margins to 0, putting whitespace to normal in my styles etc but to no affect, I have attached screen shots of the image in question, it is the orange square image.
Above the image is a div with a top border of 2 pixels (as my section divider)and the image is placed directly below it and a flash object directly below that. A style has been applied to the image to indent it with a left margin.
Below is the html code around the image and also the stle applied to the image from my external style sheet
html code:
<div id="section2div">
<div id="section2topborder"></div>
<span style="width:478px; height:423px"><img src="images/title1_1.gif" alt="section 1 bullet" class="sectionbulletindent" /></span>
<p><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','160','height','135','class','sectionbulletindent','title','fr ee trial flash link','src','Flash/freetrial','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Flash/freetrial' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="160" height="135" class="sectionbulletindent" title="free trial flash link">
<param name="movie" value="Flash/freetrial.swf" />
<param name="quality" value="high" />
<embed src="Flash/freetrial.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="160" height="135"></embed>
</object>
</noscript>
</p>
</div>
Related Styles:
#section2div {
width: 100%;
height: 200px;
vertical-align: top;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
white-space: normal;
}
.sectionbulletindent {
margin-left: 15px;
margin-top: 0px;
margin-bottom: 0px;
}
#section2topborder {
width: 470px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
border-top-width: 2px;
border-top-style: dotted;
border-top-color: #999999;
}
Above the image is a div with a top border of 2 pixels (as my section divider)and the image is placed directly below it and a flash object directly below that. A style has been applied to the image to indent it with a left margin.
Below is the html code around the image and also the stle applied to the image from my external style sheet
html code:
<div id="section2div">
<div id="section2topborder"></div>
<span style="width:478px; height:423px"><img src="images/title1_1.gif" alt="section 1 bullet" class="sectionbulletindent" /></span>
<p><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','160','height','135','class','sectionbulletindent','title','fr ee trial flash link','src','Flash/freetrial','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Flash/freetrial' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="160" height="135" class="sectionbulletindent" title="free trial flash link">
<param name="movie" value="Flash/freetrial.swf" />
<param name="quality" value="high" />
<embed src="Flash/freetrial.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="160" height="135"></embed>
</object>
</noscript>
</p>
</div>
Related Styles:
#section2div {
width: 100%;
height: 200px;
vertical-align: top;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
white-space: normal;
}
.sectionbulletindent {
margin-left: 15px;
margin-top: 0px;
margin-bottom: 0px;
}
#section2topborder {
width: 470px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
border-top-width: 2px;
border-top-style: dotted;
border-top-color: #999999;
}