Make sure you are using a DocType that renders standards based across browsers. HTML 4.01 Strict or xHTML 1.0 Strict. Validate against those
Validate your code using the HTML Validator http://validator.w3.org/ IE is notorious for allowing bad code. Remember that both Div and P are block level elements with margins. Each browser contains its own stylesheet that you overwrite. Each stylesheet is not consistent with the other. Best thing to do to make things standard across browsers is to 0 out all margins and padding first. html * {margin:0; padding:0}; For IE6, which doesn't understand the universal selector, you will need to create a comma delimited list of all block level elements. Sandra Clark ============= http://www.shayna.com Training and Consulting in CSS and Accessibility Team Fusebox -----Original Message----- From: Josh Nathanson [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 2:54 PM To: CF-Talk Subject: OT: CSS help? Hey all, I'm having an issue where I can't get rid of space above a div in Firefox. It's like the top margin is about 15 pixels. I tried setting margin and padding to 0px, no dice. It appears exactly as I would expect in IE, with the div right below the preceding text. Basically the code is like this: <p>Header text<br> <div class="myclass">Div text</div> </p> On FF, there is about 15 pixel gap between "Header text" and "Div Text" -- on IE there is just the normal line space gap that would be expected. I tried taking out the <br>, no change. I searched Google and didn't find anything that helped me. I know there are some CSS gurus on this list so I'm hoping this is a known issue with a workaround, or someone can help. -- Josh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272871 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

