Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hr Tag in IE - remove border

In other browsers except IE7 and lower the hr displays a border around the hr tag which I don't want it to.

<!--[if lte IE 7]>
<style type="text/css">
hr {
    margin: -3px 0 0 0;
    padding: 0;
    height: 19px;
    border: none;
    outline: none;
    background: url("img/split.png") center no-repeat;
}
</style>
<![endif]-->

I've tried this solution, but it still appears to have a border around it.

It looks like this:

alt text

How do I get rid of it?

like image 447
MacMac Avatar asked Jun 01 '10 23:06

MacMac


People also ask

How do I remove a frame border in HTML?

Remove border from iframe tag in the webpage could be done by using one of the CSS properties of the iframe tag called frameBorder and set its value to “0”. Syntax: frameBorder = "value"; Note: In the frameBorder property the B letter must be in capital otherwise it will not be recognized by the browser.

How do you reduce the width of a hr tag?

The thickness of the hr tag can be set using the height property in CSS.

How do I hide border lines in HTML?

We can specify the no border property using CSS border: none, border-width : 0, border : 0 properties.


1 Answers

See http://webdesign.about.com/od/beginningcss/a/style_hr_tag.htm

It seems that there is no good way around this problem, only with a hack (using a surrounding div).

like image 173
Marc Avatar answered Oct 12 '22 22:10

Marc