Ricardo Mestre wrote: > I don't have that much experience with CSS, so maybe this has a > simple solution, but right now I'm clueless.
Most solutions are simple once you know them. (At least that's my experience :-) ) I'll give you an explanation and a few alternative solutions. > http://autosaudades.com. What happens: Images in the source-code defaults to 'inline' and align to the text-baseline - regardless of whether there's any text there or not, making room, a gap, for descenders. Add to this that IE6 is buggy and doesn't respect dimensions given in CSS, and the result it that IE6 (and older IE/win-versions) expands the div so this gap becomes visible. ------ 1: The quick solution is to add... #imgheader img, #imgfooter img {display: block;} ...and the gap will be gone. Since these images are purely decorative, they should also have an empty alt-attribute... alt="" ...since only images that are real content need to / should reveal alternative information if there's no image-support at the user end. ------- 2: A much better solution is to delete those images from the source-code ((x)html) altogether, and add them as backgrounds to the respective divs instead. That's the best way to deal with such purely decorative images. Keeping your existing styles for those divs, and adding... #imgheader { background: #fff url(http://autosaudades.com/templates/waterandstone800/images/maintop.jpg) no-repeat; } #imgfooter { background: #fff url(http://autosaudades.com/templates/waterandstone800/images/mainbottom.jpg) no-repeat; } ...will result in a perfect line-up. ------- 3: You can then also go a step further, and put for example the rounded header-image as background on #content_main by adding a 35px padding-top for it on that element, in which case you can delete the entire <div id="imgheader"> from the source-code. Then you'll only have to deal with the <div id="imgfooter"> in source-code and CSS. regards Georg -- http://www.gunlaug.no ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
