Solved

IE Spacing

Posted on 2012-03-17
3
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

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 83

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
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.

617 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