Why does a jpg link take up more vertical space than just the jpg?
I have the following code:
It works as I would expect with no scrollbar.
If I make the jpg in the footer a link like the following:
I suddenly get a scrollbar. Why is that? How do I keep it from happening if I want to keep the same footer height. You can use any 40 jpg to see this behavior.
Thanks, Alan
5 Replies
images default to inline display. this leaves room for a decender. you could change vertical align to bottom, or change display to something other than inline.
Hi Sue: Can you give me an example of what I should change it to? Thanks, Alan
img{
max-width:100%;
display:block;
}
Thank you!
put this in stylesheet so it will apply on all images