This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
Banner Different in IE and Firefox

Hi folks

Can anyone help please?

I'm trying to get the banner on this page, http://blackhorsekawasaki.com/index.html, look the same in both IE7 and Firefox. The firefox one is correct which has a bit of green down both sides of the logo only, but in IE7 the logo is off centre with green round the top and right hand side only.

Thank-you

Browser: IE7

Re: Banner Different in IE and Firefox

The section with your logo has a lot of embedded non-breaking spaces. Firefox tends to ignore most of them but IE does not. First, eliminate all of the non-breaking spaces. The add a centering style to the "div" that is wrapped around the image. See the code listing below. I highlighted the centering style that needs to be added. I know it looks strange, because your dealing with an image not text. But this will center everything in the "div", not just text. In my tests, it looked the same in Firefox and IE.

Code:
<div id="pageWrapper">
<div id="pageHeader" style="<span style="font-weight:bold;">text-align: center; </span>width: 100%; height: 200px;">
<span style="font-size: 15pt; color: red; font-family: new century schoolbook,serif;">
<img style="width: 715px; height:200px;" src="http://blackhorsekawasaki.com/Photos/WebLogo.jpg"><br></span>
</div>
</div>

Browser: Firefox, Netscape, Sea Monkey, Internet Explorer, .....

OS: Solaris (Sparc,x86), Linux, XP

Re: Banner Different in IE and Firefox

Thank-you Philo, you're a genius!

I noticed that when viewing the page on IE7 that the writing on the banner and the small photos/logos etc seems a little bit more 'jagged' than in Firefox. Is there any particular reason for this?

Thank-you

Browser: IE7

Re: Banner Different in IE and Firefox

SJM
Thank-you Philo, you're a genius!

I noticed that when viewing the page on IE7 that the writing on the banner and the small photos/logos etc seems a little bit more 'jagged' than in Firefox. Is there any particular reason for this?

Thank-you


That is usually caused by resizing photos using HTML. It is recommend to upload images to your website at the size you intend to use them at. Otherwise changing their size with code usually distorts them a bit.

Courtnie

Re: Banner Different in IE and Firefox

Thank-you Courtnie

Browser: IE7