---
title: How to remove links dotted border in IE7?
description: >-
  Here you will find a quick trick on how you can remove active links' dotted border outlines from
  IE7. Trick works well when a:focus{outline:none;} is not...
url: https://expiredqueues.com/remove-dotted-border-in-ie7/
date: '2011-09-21T10:28:23.000Z'
image: https://expiredqueues.com/images/og/remove-dotted-border-in-ie7-b695a84b.jpg
---

Written in September 2011. Much of what it describes has since changed or disappeared; it is kept as a record of how the web used to work, not as advice.

CSS posts css

# How to remove links dotted border in IE7?

21 September 2011 By Adrian 1 min read

**Is your head spinning** trying a:focus{outline:none;} to remove the dotted outlines in active links in IE7? Well mine was. After a long research and trying a lot of tests, I came to face a good, well-worked trick to remove those ugly dotted borders.

## The myth

Try out Googling on this topic and you'll find everyone is saying use this:

```css

	a:focus, *:focus {outline:none;}
```

A never working fix for IE7.

But hey, is that property supported in IE7? Simplest and fair answer is **"No"**. CSS 'outline' is not supported in IE7.

Here you will find a quick trick on how you can remove active links' dotted outlines from IE7. _(Sorry for recommending to use CSS expression, but this is the only solution for IE7.)_

## The Solution

Nothing more, just one line is needed in your CSS, but it's a CSS expression.

```css

a:focus, *:focus {
	noFocusLine: expression(this.onFocus=this.blur());
}
```

![Fix Dotted Borders in IE7](https://expiredqueues.com/images/2011/Fix-Dotted-Borders-in-IE7.gif "Fix-Dotted-Borders-in-IE7")

That's it. All those ugly dotted lines are gone. It's tested against IE7 only.

Do you have another css trick on this? Share with me - comment it down.

### Similar IE 7 Quick Trick

- [How to remove black border around input buttons in IE 7?](https://expiredqueues.com/remove-black-border-around-input-buttons-in-ie-7/)

[Previously Create Document Icon with CSS3](https://expiredqueues.com/css3-document-icon/) [Next Resources to write better resume and cover letter](https://expiredqueues.com/write-better-resumes-cover-letters/)

## Structured data

```json
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "How to remove links dotted border in IE7?",
  "datePublished": "2011-09-21T10:28:23.000Z",
  "dateModified": "2011-09-21T10:28:23.000Z",
  "author": {
    "@type": "Person",
    "name": "Adrian",
    "url": "https://expiredqueues.com/about/"
  },
  "publisher": {
    "@type": "Person",
    "name": "Adrian"
  },
  "mainEntityOfPage": "https://expiredqueues.com/remove-dotted-border-in-ie7/",
  "image": "https://expiredqueues.com/images/2011/Fix-Dotted-Borders-in-IE7.gif",
  "keywords": "posts, css, ie, tips-tricks",
  "articleSection": "CSS"
}
```
