Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Styling HR's in IE

Status
Not open for further replies.
Jan 11, 2007
51
Hi,

This style works great in FireFox, but doesn't seem to take the HEIGHT properties in IE

Code:
.hrSep {
height: 1px;border: 0px;
margin: 0px;
padding: 0px;
color: gray;
background-color: gray;
padding-left: 10px;
}

Here is the HTML that goes with that style:

Code:
<tr>
<td colspan="3"><hr class="hrSep"></td>
</tr>

Thanks! Jenni
 
OK thanks for the link. It seems like using HR is not a good practice anymore huh. What is the best way to create a solid 1px line seperator in CSS?

Thanks!

Jenni
 
Do what the person in the article suggests. Either:

1. Create a bottom border on the actual element or
2. Use <hr />
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top