html - Internet Explorer 10 menu item shows focus outline unexpectedly -
i have css issue html menu. appears in ie. have make compatible ie10 , higher.
i have following html:
<div class="categories-container"> <ul class="categories"> <li class="category item"> <strong> <a class="text">lorem ipsum 1</a> </strong> </li> <li class="category item"> <strong> <a class="text">lorem ipsum 2</a> </strong> </li> <li class="category item active"> <strong> <a class="text">lorem ipsum 3</a> </strong> </li> <li class="category item"> <strong> <a class="text">lorem ipsum 4</a> </strong> </li> </ul> </div>
...and css:
.categories-container { width: 200px; margin: 30px; } .categories { border-top: 1px dotted rgba(111, 111, 111, 1); list-style: none; margin: 37px 0 0 0; } .categories .category { border-bottom: 1px dotted rgba(111, 111, 111, 1); } .categories { display: block; padding: 3px 10px; color: #444; } .categories a:hover { text-decoration: none; color: #444; background: rgba(220, 231, 235, 0.470588); } .categories .active { color: #444; background: rgba(220, 231, 235, 1);; cursor: default; text-decoration: none; }
i created jsfiddle demonstrates issue.
steps reproduce:
- open demo
- click on item menu
if not on ie see this:
if are on ie see border , underlined text:
how can fix border , underlined text?
.categories { display: block; padding: 3px 10px; color: #444; text-decoration: none; /*removes text underline*/ outline: none; /*removes dotted outline causing solid border*/ }
internet explorer adds dotted outline
, underline links when click them apparently, code trick :)
Comments
Post a Comment