IE7 and images spacing

Posted on 2007-12-05
Medium Priority
Last Modified: 2013-12-25

This is probably a really stupid question,  but im having total brain freeze and cant figure this one out.  Basically I have three images that are slices of the same image in a wrapper div that are the width of the wrapper.

For some reason in IE7 the images appear with a 3px bottom margin, ive already tiried setting the border to 0, and collapsing the border with no success.  in firefox the images appear one after another as they should.

Any suggestions, welcome

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="http://pattern/webcd/js/mootools.js"></script>
<script type="text/javascript" src="http://pattern/webcd/js/modal.js"></script>
<script type="text/javascript" src="http://pattern/webcd/js/loader.js"></script>
<link type="text/css" rel="stylesheet" href="http://pattern/webcd/css/modal.css" />
<title>Llewelyn &amp; Company</title>
<style type="text/css">
		background:#F2E8DE url('images/BG-pattern.gif') repeat;
		margin:0 ;
	<div id="wrapper">
	<img src="images/TopV2.jpg" alt="Online Store Comming Soon" border="0" />
	<img src="images/MiddleV2.jpg" alt="" border="0"/>
	<a class="amseru_box" href="http://geraintp.wufoo.com/forms/llewelyn-co/" rel="{handler:'iframe',size:{x:650,y:550}}">
	<img src="images/BottomV2.jpg" alt="" border="0"/>	</a></div>

Open in new window

Question by:gxp071
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
LVL 28

Accepted Solution

TName earned 500 total points
ID: 20410206
Just a guess - try

#wrapper img{ display:block; }
#wrapper img{ vertical-align:bottom; }

Author Comment

ID: 20410214
Cheers, display block did the trick....
LVL 28

Expert Comment

ID: 20410226
Just to explain the problem: the images (inline elements in strict mode) will "float" on the font base line instead of the bottom line...

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

801 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