drtanz — 2010-02-23T05:22:04-05:00 — #1
i have a small gap underneath the flash banner http://tinyurl.com/ybdodnw that i need to remove, so that the banner touches the menu beaneath, how can i do this?
vinpkl — 2010-02-23T08:36:02-05:00 — #2
may be try giving negative top margin
drtanz — 2010-02-23T09:26:23-05:00 — #3
works well thanks, i still dont understand however why this is needed, as in why the gap was there in the first place.
jjmcclure — 2010-02-23T10:34:07-05:00 — #4
It's happening (probably) because Object elements are treated as inline so FF is correctly making a space under the object for text descenders. IE just ignores that cos it's crap. If you set the property for the movie to 'block' it should get rid of the gap and not be a fudge fix.
vinpkl — 2010-02-23T11:10:20-05:00 — #5
well tried it and it worked. so i posted it.
you can try JJMcClure suggestion also.
erik_j — 2010-02-23T11:40:15-05:00 — #6
You can test how the gap increases/decreases with current font-size, use the menu option to alter the text size in IE. The suggested 2px neg top margin happened to suit the default font-size.
(The gap is then explained by JJMcClure.)
drtanz — 2010-02-23T11:51:03-05:00 — #7
ok do you mean set it to block via css or some other properties?
jjmcclure — 2010-02-23T12:01:40-05:00 — #8
drtanz — 2010-02-23T12:04:17-05:00 — #9
stomme_poes — 2010-03-01T04:07:21-05:00 — #10
If you have an image with a gap and don't want to have it get other block properties (sometimes you may want it to stay inline) then, on an inline image, you can
I do this at the top of my stylesheet esp since I don't always want/need block features in my images.
ryanreese — 2010-03-01T07:28:39-05:00 — #11
The font-size:0 trick doesn't work in Opera, however setting line-height to 0 fixes it for Opera