Solved

IE Spacing

Posted on 2012-03-17
3
241 Views
Last Modified: 2012-08-14
Hello,

Please look at http://www.villageairportvan.com/new_main.htm in FireFox (Version 10). This layout is exactly what I want.

Now look at the same page in IE (Version 8). Note the discrepancies.

I realized that one of the issues was the vertical separation between the menu bar item on the left. If you look at the code, there is a "spacer" of fixed height of 14 pixels between the bars. In FireFox, it is 14 px. In IE it is 19 px.

The image spacer.gif is 1 x 1 transparent gif.

I realize that my "old fashioned" way (not css) of doing this may not be politically correct, but why can't IE render a 14 px height image as 14 instead of 19?

How can I fix this?

PS - I tried making a php version that recognizes the browser & sets the height to 11 for IE. IE still renders it as 19.
0
Comment
Question by:Richard Korts
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37733769
First, your DOCTYPE is incomplete so IE is rendering in 'Quirks' mode instead of 'Standards' mode.  This is the complete version:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

Open in new window


In addition, if you are going to use all images, you might as well make it just one big image.  It will load much quicker than all those small ones and won't get unaligned.
0
 

Author Closing Comment

by:Richard Korts
ID: 37733865
Thanks Dave, the Doctype cleared up 99% of it.

I need to concentrate on that. You guys are getting a LOT of points because I don;t.

The reason I can't have ONE image is I have to have mouseover effects on some of the component images (not shown yet).
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 37733978
You can still make the constant image a back ground that is always there and put the mouseovers on top of that.  Really, fewer is better.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now