ie extra line using both tables and css

A

acorn71

hello, the following code below creates an unwanted space (about 1px)
underneath my image using ie 6. this space does not show up in ff1. the
same results happen regardless if i use different images, or put my
image inside a table. any suggestions? thanks. aaron;

p.header {
border-style: solid;
border-color: #232D78;
border-width: 2px;

position:absolute;
top:50px

}

<p class="header">
<img src="myimage.gif" width="100" height="50" alt="mycaption"
border="0" />
</p>
 
E

Els

unwanted space (about 1px) underneath my image using ie 6.

The image is probably sitting on the baseline of text, leaving room
for the lower halfs of the letters g and j and others.
Does img{display:block;} or img{vertical-align:bottom;} change
anything?
 
A

acorn71

hey, thank you so much! the img{vertical-align:bottom;} works on both
ie and firefox. you have really helped me with this one as i was sure
spending a lot of time trying to figure that out. thanks again!

aaron;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top