How to target only IE (any version) within a stylesheet?

I have an inherited project and there are places where it’s an utter mess. This is one of them. I need to target only IE (any version).

#nav li {
    float: left;
    height: 54px;
    background: #4f5151;
    display: table;
    border-left: 1px solid grey;
}

To be clear: Inside the embedded stylesheet and without adding ID’s or classes to the tags in the html, I need to apply the border style only if the user is using IE. How can I do this?

Edit: found a solution for Firefox, editing question to reflect this.

6 Answers
6

Leave a Comment