Remy
Remy

Reputation:

HR tag renders white pixel

In IE8 and mozilla 3.5 theres an white pixel to the right. How can i get rid of that? Seting background-color changes nothing. neither does width.

hr {
 border-top: 1px solid #111;
 border-bottom: 1px solid #444;
}

This is how it looks right now

enter image description here

Upvotes: 1

Views: 461

Answers (1)

jimyi
jimyi

Reputation: 31191

Adding this to the CSS fixes it (I also noticed a white pixel on the left side, though smaller than the right):

border-left: 0;
border-right: 0;

Upvotes: 4

Related Questions