I'm trying to get three <hr> tags in a row to display close together. Works fine in Firefox but of course, IE spaces them out.
Here's some brief code and CSS.
Code HTML4Strict:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Company name.</title> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/> <link href="style.css" type="text/css" rel="stylesheet" /> </head> <body> <hr class="thick" /> <hr class="medium" /> <hr class="thin" /> </body> </html>
Code CSS:body, p, h1, h2, h3, h4, h5, ul, ol, hr { margin: 0; padding: 0; } .thick { height: 7px; width: 700px; color: #bcbcd8; background-color: #bcbcd8; margin-bottom: 2px; } .medium { height: 5px; width: 700px; color: #bcbcd8; background-color: #bcbcd8; margin-bottom: 2px; } .thin { height: 3px; width: 700px; color:#bcbcd8; background-color: #bcbcd8; margin-bottom: 2px; }
Removing the bottom margin doesn't help in IE, and makes them display too close in Firefox.
Any ideas?
Thank you!








Bookmarks