Search code examples
csslayouthtmlpositioning

CSS issue in positioning element


I can't seem to get the graphics on the top and the bottom of the navigation menu to have no gaps. Since the top and bottom images need to be stretched it can't be done as a background image. The 3 pieces need to be touching. I have tried using tables, setting margins and padding to 0px on everything, even tried using a css clear file and I still cannot get them touching.

jsFiddle... http://jsfiddle.net/PerryCS/JXVGM/1/

Am I trying to force the browser to do something it's not capable of doing? Where is the extra spacing coming from?

Please and thank you!

I don't mind trying things out. I have spent about 11 hours fiddling with this and I'm very frustrated at the lack of understanding on my part at why there is still a space. Ugh.

Needs to work on IE7 and above please. :)


Solution

  • Add display: block to .navribbon img: http://jsfiddle.net/thirtydot/JXVGM/2/