Styling the <hr /> element

I am trying to make my <hr /> (hr) element pinkish, and am using the following css rule for this:

hr {height: 1px; color: #ed1d61;background-color: #ed1d61;
}

But there is still a black line showing through it.

(here is a look at it on the site that I am making: http://www.yemon.org/ , its the only horizontal line in the design.

How do i get the line uniform pink?


将其更改为:

hr {
    height: 1px;
    color: #ed1d61;
    background: #ed1d61;
    font-size: 0;
    border: 0;
}

Looking at your page, I think this would look best:

hr {height: 2px;
    background-color: #ed1d61;
    border:none
}

A demo is here.


尝试设置边框颜色属性:border-color:#ed1d61;

链接地址: http://www.djcxy.com/p/15742.html

上一篇: 什么是<hr>的默认颜色?

下一篇: 设计<hr />元素