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?
| SitePoint Sponsor |




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?



may be try giving negative top margin
vineetCode:#menu { background:url(../images/menu.png) repeat-x; height:51px; margin-bottom: 15px; margin-top:-2px; /*margin-top: 15px;*/ }




works well thanks, i still dont understand however why this is needed, as in why the gap was there in the first place.

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.
It's 530 people, but do you really get it?
ImgWebDesign - Web design in Buxton, High Peak, Derbyshire UK.



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.Originally Posted by drtanz
(The gap is then explained by JJMcClure.)
Happy ADD/ADHD with Asperger's




ok do you mean set it to block via css or some other properties?

It's 530 people, but do you really get it?
ImgWebDesign - Web design in Buxton, High Peak, Derbyshire UK.




ok fixed cheers





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
img {
vertical-align: bottom;
}
I do this at the top of my stylesheet esp since I don't always want/need block features in my images.

http://www.visibilityinherit.com/cod...ge-example.php
The font-size:0 trick doesn't work in Opera, however setting line-height to 0 fixes it for Opera![]()
Twitter-@Ryan_Reese09
http://www.ryanreese.us -Always looking for web design/development work
Bookmarks