Forum Moderators: not2easy

Message Too Old, No Replies

IE img margin/padding problem

         

rutt

7:59 pm on Aug 3, 2005 (gmt 0)

10+ Year Member



So, I'm trying to get a margin of a div to sit flush up against the images inside of the div, which shouldn't be a problem, and it renders fine in Firefox, however, in IE there is a 2-3 pixel gap that shouldn't be there.
I have tried
img{
border: 0;
padding: 0;
margin: 0;
}
which was unsuccessful. Other than that I've just been poking and proding, since I don't know what the problem is.

Pixelgamer

8:15 pm on Aug 3, 2005 (gmt 0)

10+ Year Member



Try doing the same css-htings with the container, if that doesnt work, I seem to be having the same problem =(
Mine isnt actually an <img> it's a jscript which places a pictures there, and IE gives me a 4 pixel gap to the bottom-border only, hmm, need help...

rutt

8:22 pm on Aug 3, 2005 (gmt 0)

10+ Year Member



Yeah, I've been trying. Mine is only on the bottom border as well.

rutt

8:25 pm on Aug 3, 2005 (gmt 0)

10+ Year Member



*sigh*... it's IE rendering whitespace.

I made:
<link rel="stylesheet" type="text/css" href="test.css">
<div id="header">
<a href="http://satest.is.depaul.edu/plus/redesign"><img src="plus.gif" alt="PLuS header"></a><a href="http://www.studentaffairs.depaul.edu"><img src="divisionofstudentaffairs.gif" alt="Student Affairs Logo"></a>
</div>

into a single line with no spaces, and it rendered fine

Pixelgamer

11:10 pm on Aug 3, 2005 (gmt 0)

10+ Year Member



I dont exactly understand what you did, you think this can help me as well?

Pixelgamer

3:12 pm on Aug 4, 2005 (gmt 0)

10+ Year Member



Maybe you could post the css file you used to that? :)
Oh sorry, I understand and it works for me2 know, thanks =)
(I edited my last post, but I'm sry if this ends up in a triple post?)