Mark Flewellen wrote: > Hi Doug, > > you have an extra closing div tag in your example and if you > remove the margin bottom of the banner the footer should > close up under the news like you wanted. Change the > margin-bottom to padding bottom and you should be in business. >
Yes, good spotting. That will teach me for cutting and pasting the HTML only, and I didn't even see the bottom div til you mentioned it! The extra closing div doesn't actually make any difference to the margin-collapsing issue (IE is actually not too bad at *error correction*) although validating your html is definitely the first place to start in the debugging process if problems occur. Incidentally, IE6 on my win2k machine at home renders the same as all other browsers, so it only seems to be IE on XP. Then Doug followed up with: > Thanks for the help. I removed the margin-bottom from the > banner id and then added margin-top to the mainNav, main and > news id's to push them away from the banner and it seems to > be working If the layout were going to get extremely complicated or you had several other elements that were being affected, it can sometimes pay to add another wrapper div around those and apply the margin to that (although currently in your case that's not necessary). > To answer the question from Neil, I am using ID's > on all div due to the fact that there is only one occurrence > of those objects in the page. If there were multiple items > needing the same style properties, I would use class > selectors instead. http://css-discuss.incutio.com/?page=ClassesVsIds Mark -- This message has been scanned for viruses and dangerous content by ISPNZ's automated virus detection system, and is believed to be clean. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272709 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

