Hi,
I have made a CSS syle:-
.hr {
border:0;
border-top: 1px solid #840017;
height: 0;
background: #840017;
This makes a horizontal line to act as a break. But in FF and IE it comes out grey and not claret (#840017)
Any ideas what I have done wrong?
page can be seen here
http://www.thevillagers.co.uk/matchreports/1011/chinnor15holyport.html
Thanks,
Richard
.hr {
border:0;
border-top: 1px solid #840017;
height: 0;
background: #840017;
This makes a horizontal line to act as a break.
Unfortunately not.
You've inadvertently defined a class of "hr" (which has no effect on the <hr> tag), rather than re-defining the format of the <hr> tag (which is your intention).
Remove the leading period (full stop) from in front of the hr in the stylesheet to change it from a class="hr" to a tag selector <hr>.
Change
.hr
to
hr
A subtle but important difference.
North America
Europe, Middle East and Africa
Asia Pacific