AboutAndrew Hoffman Expertise I can field just about any question within this topic ranging from JavaScript to CSS, the two ingredients of DHTML. I`m very interested in the W3C and its validation rules for HTML, XHTML, and CSS, and enjoy answering questions of this type as well. I detest sleep and respond at all hours of the day or night.
Experience Experience in the area I've been working with DHTML and CSS for 7 years now and build/maintain websites of my own that implement DHTML navigation.
What I'm doing now My contract with Microsoft has ended and I am working for myself once again. Please contact me for any front-end work at antibland@gmail.com
Question Hello Andrew:
Unfortunately I found out the hard way that <hr> property is interpreted differently by most browsers, especially IE, which creates additional white space below the horizontal line.
I tried defining properties like border, padding, line space, etc., but nothing helps.
If you want to see what I mean, here is the link to my website, http://lauramohanty.com/Resume.html. In mozilla it's fine, and I validated the CSS code. However, I.E., it looks different with the extra spacing. This minor detail is driving me bonkers!
Have you experienced a problem similar to this before? Is there something I can try to elimate white space with <HR>, I really don't want to use any images if possible.
Thanks again for your help!
-Laura
Answer I've had this happen too, and zeroing out the padding and margins doesn't seem to solve this problem in IE. What I've done as a workaround is to use a centered div with a fixed height and width. Copy and paste this chunk to see what I mean (works happily with IE too):
<body>
<div id="container">
<p>content here content here content here content here content here content here content here content here content here content here content here content here content here content here</p>
<div class="hz_line"></div>
<p>content here content here content here content here content here content here content here content here content here content here content here content here content here content here</p>
</div>
</body>
</html>