keepcalculator

06 Numbers and Powers

Remove Yellow Border Obs? Fix It Now

Card No. 06·11959 · Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered
You enter
Finish time, Distance
You get
Average pace, Average speed
Rounding
2 dp

If you are seeing a yellow border around an element on your screen, it is almost always the browser’s accessibility focus indicator, not a virus or a display fault. You can remove it by pressing the Tab key, clicking elsewhere, or disabling the setting in your operating system’s accessibility options.

What the Yellow Border Actually Is

The yellow border (sometimes blue, orange, or black) is called a focus ring or focus indicator. It appears around the element that currently has keyboard focus — the button, link, text field, or menu item that will respond when you press Enter or Space. Browsers and operating systems draw it so keyboard users can see where they are on the page. It is a core part of web accessibility, required by the Web Content Accessibility Guidelines (WCAG) 2.1 Success Criterion 2.4.7.

Most people notice it when they click a button or link and the border stays after the click. That happens because the browser keeps focus on the element you clicked. It is not a glitch; it is the browser telling you that the element is still selected.

Why It Appears on Some Websites and Not Others

Websites have control over their own focus styles. Many designers deliberately remove the default outline using CSS like outline: none or outline: 0. When a site does that, you will not see any border on that site. Other sites keep the default browser style, which is often a thin blue or yellow line. The yellow color is common in Chrome and Firefox on Windows when the system’s accent color is yellow or when the site uses a custom focus style with a yellow color.

Also, some browser extensions (like password managers or grammar checkers) draw their own yellow or colored borders around fields they are working with. If the border only appears on a specific input field, check your extensions first.

How to Remove It in Your Browser

There are three reliable ways to get rid of the yellow border, depending on why it is there:

  • Click anywhere else on the page — this moves focus away from the element, and the border disappears.
  • Press the Tab key — this moves focus to the next element. The border will move with it, so it will no longer be on the element that bothered you.
  • Press Escape — on some browsers, this clears focus without moving to another element.

If the border appears on every page and you want to disable it globally, you need to change your operating system’s accessibility settings, not the browser. On Windows, go to Settings → Accessibility → Visual effects and turn off “Animation effectsâ€� or “Transparency effectsâ€� — though this does not always remove focus rings. On macOS, go to System Settings → Accessibility → Display and toggle “Reduce transparencyâ€� or, more directly, use the “Keyboardâ€� tab and turn off “Full Keyboard Accessâ€� if you are seeing a border around links when you press Tab.

How to Remove It on a Website You Own

If you are a web developer or site owner and you want to remove the yellow border from your own site, you should not simply remove the outline. That harms keyboard users. Instead, replace the default focus style with a custom one that matches your design but is still visible. The standard approach is:

  1. Add a CSS rule that targets :focus-visible (not :focus, which also triggers on mouse clicks).
  2. Set a custom outline or box-shadow, for example: outline: 2px solid #4a90d9; outline-offset: 2px;
  3. Test with Tab and Shift+Tab to ensure the focus ring appears on all interactive elements.

If you want to remove it only for mouse users while keeping it for keyboard users, use :focus:not(:focus-visible) to hide the ring on mouse click. That is the recommended pattern from the W3C.

Common Misconceptions

Many people think the yellow border is a sign of malware, a hacked browser, or a broken monitor. It is none of those. It is a standard accessibility feature. Another misconception is that pressing F11 (fullscreen) removes it — it does not. The border is drawn by the browser’s rendering engine, not by the page layout, so fullscreen does not affect it.

Another common question is whether the border can cause a “ghost image� or burn-in on a screen. It cannot. It is a software overlay, not a persistent image. If you see a permanent yellow rectangle even after closing the browser, that is a different problem — likely a stuck pixel or a screen burn-in from a static image, not the focus ring.

When You Should Not Remove It

If you are a developer, removing the focus ring entirely is a serious accessibility mistake. Users who rely on keyboards (including many with motor disabilities) need a visible focus indicator to navigate. The WCAG guideline requires a visible focus indicator, and many countries have laws that reference WCAG (like the Americans with Disabilities Act in the U.S. and the European Accessibility Act). Removing it can make your site non-compliant and harder to use.

If you are a user, there is no harm in keeping it. It does not affect performance, privacy, or security. It is simply a visual aid. If it bothers you, the click-away method is the fastest fix.

Alternatives to the Default Yellow Border

If you are a user and you want a different color or a less intrusive indicator, you can change your system accent color in Windows or macOS. The focus ring often follows the system accent color. In Windows, go to Settings → Personalization → Colors and change the accent color. In macOS, go to System Settings → Appearance and change the accent color. This will change the color of the focus ring in many browsers and native apps.

Some browsers also let you set a custom focus ring style via user stylesheets or extensions. For example, Firefox supports userContent.css where you can override the default outline. Chrome does not have a simple built-in way, but extensions like “Stylus� can inject CSS to change focus styles.

Frequently Asked Questions

Q: Is the yellow border a virus?
No. It is a browser accessibility feature. No malware draws a yellow border. If you are concerned, run a security scan, but the border itself is harmless.

Q: How do I remove the yellow border on a Mac?
On macOS, the focus ring color follows the accent color. Go to System Settings → Appearance → Accent color and choose a different color. To disable the ring entirely, you can use a user stylesheet in Safari or a browser extension, but it is not recommended.

Q: Why does the yellow border appear when I click a button?
Because the button keeps focus after the click. The browser draws the ring to show which element is selected. Clicking elsewhere or pressing Tab removes it.

Q: Can I remove the yellow border permanently in Chrome?
Not without a third-party extension or a custom stylesheet. Chrome does not have a built-in setting to disable focus rings. You can use an extension like “Stylus� to inject CSS that removes or restyles the outline.

Q: Does the yellow border affect screen readers?
No. Screen readers use the accessibility tree, not the visual focus ring. Removing the ring does not affect screen reader output, but it does affect sighted keyboard users.

Q: What if the yellow border is on my monitor even when the browser is closed?
That is not a focus ring. It is likely a stuck pixel or screen burn-in. Try a pixel-fixing video or a screen refresh. If it persists, it is a hardware issue, not a software one.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →