Forum Moderators: not2easy
This particular IE quirk involves some images being displayed, and as each one gets displayed, they get smaller.
Here is the CSS/HTML:
CSS
div#thumbmenu {
margin-left: auto;
margin-right: auto;
width: 90%;
clear: both;
}img.thumbmenuitem {
width: 17%;
margin-top: -20%;
float: left;
position: relative;
/*margin-left: 1%;
margin-right: 1%;*/
}
img#first {
margin-left: 5%;
z-index: 1;
}
img#second {
margin-left: 21.80%;
z-index: 1;
}
img#third {
margin-left: 38.65%;
z-index: 1;
}
img#fourth {
margin-left: 55.5%;
z-index: 1;
}
img#fifth {
margin-left: 72.35%;
z-index: 1;
}
HTML
<div id="thumbmenu">
<img class="thumbmenuitem" id="first" src="./images/thumbs/mapthumb.png" alt="Bradley County Voting Areas" title="Bradley County Voting Areas">
<img class="thumbmenuitem" id="second" src="./images/thumbs/filmthumb.png" alt="Video Gallery" title="Video Gallery">
<img class="thumbmenuitem" id="third" src="./images/thumbs/experiencethumb.png" alt="List of Experience" title="List of Experience">
<img class="thumbmenuitem" id="fourth" src="./images/thumbs/letterthumb.png" alt="Letters of Excellence" title="Letters of Excellence">
<img class="thumbmenuitem" id="fifth" src="./images/thumbs/slideshowthumb.png" alt="Slideshow Galleries" title="Slideshow Galleries">
</div>
I'm not setting any width values in the ID's.... it's not making sense! I would post a screenshot, but I am afraid of violating TOS.
If anyone out there has dealth with this, please let me know why IE is doing this.
If you need the image to be a different resolution then manually resize them with an image editor. Browsers will do odd things if you try to size images that aren't their normal dimensions...and then throw in IE and just forget it. So remove the width from the images and let the browser render the image as is...if you don't like as-is then edit the image itself or make a copy and edit the copy image directly.
- John
You can't "scale" bitmap based images, only vector based images.
You can resize images in CSS and CSS3 will offer even more in the future (like rescaling background images).
The problem child IE uses a far from optimal algorithm but there is somewhere a setting to change it to a standard bicubic one.
I'm trying to understand the reasoning behind the margins, the float, the centering and all, and honestly: it's hard to grasp what you're trying to do.
72% margins are gigantic.
I'm not setting any width values in the ID's.... it's not making sense!
I suggest reading up on the cascade and specificity a bit as they'll bite you easily enough if you're not familiar with the concepts.
To just simplify it to your example:
<img class="thumbmenuitem" id="third"
width: 17%;
margin-top: -20%;
float: left;
position: relative;
margin-left: 38.65%;
z-index: 1;
Also take care with legacy IE in quirksmode: they use a broken box model, and that too might haunt you all to easy (use a full doctype with nothing in front of it)
CSS
div#thumbmenu {
margin-left: auto;
margin-right: auto;
width: 90%;
clear: both;
}img.thumbmenuitem {
/*width: 17%;*/
margin-top: -18%;
float: left;
position: relative;
/*margin-left: 1%;
margin-right: 1%;*/
}
img#first {
margin-left: 10%;
width: 17%;
z-index: 1;
}
img#second {
margin-left: 0%;
width: 21%;
z-index: 1;
}
img#third {
margin-left: 0%;
width: 27%;
z-index: 1;
}
img#fourth {
margin-left: 0%;
width: 38%;
z-index: 1;
}
img#fifth {
margin-left: 0%;
width: 63.5%;
z-index: 1;
}
HTML
<div id="thumbmenu">
<img class="thumbmenuitem" id="first" src="./images/thumbs/mapthumb.png" alt="Bradley County Voting Areas" title="Bradley County Voting Areas">
<img class="thumbmenuitem" id="second" src="./images/thumbs/filmthumb.png" alt="Video Gallery" title="Video Gallery">
<img class="thumbmenuitem" id="third" src="./images/thumbs/experiencethumb.png" alt="List of Experience" title="List of Experience">
<img class="thumbmenuitem" id="fourth" src="./images/thumbs/letterthumb.png" alt="Letters of Excellence" title="Letters of Excellence">
<img class="thumbmenuitem" id="fifth" src="./images/thumbs/slideshowthumb.png" alt="Slideshow Galleries" title="Slideshow Galleries">
</div>
It's off a little, but I'm happy considering it's IE.