Search code examples
cssinternet-explorer-7internet-explorer-6outline

Alternative to outline property for IE 6 / 7


I was happily using outline property until I came to know that it is not supported in IE 6 / 7.
I tried but couldnt find any alternative.
How to achieve same effect as outline property in IE 6 / 7 ?


Edit:
I want to apply it to input,radio and checkbox. So workaround should (hopefully) work with all of this.

Thanks!


Solution

  • As a rule i try to avoid using outline, for the reason you have just discovered.

    A potential work around.

    .element_name {
      border:1px solid black;
      margin:-1px;
    }