4 replies [Last post]
Anonymous
Anonymous's picture
Guru
calgary,alberta
calgary,alberta

I have placed an image in a div like so; <div id="leftcontent"> </div>

the css for id is;
#leftcontent {
position: absolute;
left:12px;
top:198px;
width:230px;
height:385px;
border:1px solid #000;
background-image : url(../images/kids.jpg);
background-repeat : no-repeat;
background-color : White;
}

This results in a small horizontal space of about 3 px at the bottom of the image. It renders this way in NN6 & IE6. IE5 appears to not have the space. Any ideas about what's happening here?

A different issue with IE5.5 however is the menu bar is slightly short in length (ie doesn't align at right with other content. And center column doesn't appear to display a height consistent with the left and right content divs.

Any suggestions or comments very welcome.

Ref: http://www.netnoise.com.au/acpchn/

Thanks
David

blakems
blakems's picture
Offline
Enthusiast
UTah, USA
Last seen: 16 years 15 weeks ago
UTah, USA
Timezone: GMT-7
Joined: 2003-04-07
Posts: 60
Points: 0

Space under image

have you change the padding and height to equal your height of the image. You may have to refer to the box model hack.

This might solve your other issue as well

-bMs-
http//www.blakems.com !important;

jasonm
jasonm's picture
Offline
Regular
Calgary, Canada... eh!
Last seen: 16 years 10 weeks ago
Calgary, Canada... eh!
Timezone: GMT-7
Joined: 2003-05-07
Posts: 11
Points: 0

Space under image

ehmer,

I believe images/anchors and the such have a default margins on their bottoms. As blakems mentioned you have to adjust for it. Can't remember if it is the padding or margin though (I'm not at home right now, so I can't verify).

Good luck.

jasonm

There is nothing new under the sun . . .

insin
insin's picture
Offline
Enthusiast
Belfast, NI
Last seen: 16 years 10 weeks ago
Belfast, NI
Joined: 2003-05-07
Posts: 57
Points: 0

Space under image

Adding:

img {
vertical-align: text-bottom;
}

...should fix your problem.

A Pedant Writes...
Into the mountain,
I will fall.

noon.pl
Offline
newbie
Last seen: 15 years 37 weeks ago
Joined: 2003-11-03
Posts: 1
Points: 0

Space under image

The simpler the better insin Smile