Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7488859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:06:00+00:00 2026-05-29T15:06:00+00:00

There has been some controversy regarding the practice of doing the following: a, input,

  • 0

There has been some controversy regarding the practice of doing the following:

a, input, textarea, button {
    outline: none;
}

Accessibility issues are a common concern.

It is not my intention to remove this feature altogether (as the code above does); however, this feature greatly messes with my original design by adding unintended borders (erm, outlines?) in unwelcome areas.

The main problem is that these outlines actually follow the rectangular area around the element, not its contour (i.e. it ignores border radius, etc.).

Example:

div {
    margin: 64px;
}

input {
    font-size: 20px;
    border-radius: 16px;
    border: 2px solid #CCC;
    padding: 2px 12px;
}

button {
    font-size: 20px;
    border-radius: 32px;
    text-transform: uppercase;
    color: #FFF;
    border: 2px solid #CCC;
    background: #CCC;
    padding: 6px 3px;
    cursor: pointer;
}
<div>
    <input type="text" placemark="Search query..."/>
    <button>Go</button>
</div>

The only solution of which I am aware is to have the above code running and employ my own system.

What are the best practices when taking this approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:06:01+00:00Added an answer on May 29, 2026 at 3:06 pm

    Indeed. An outline is around the rectangular area on the outside of the border. It doesn’t take rounded corners into account.

    There’s nothing wrong with disabling the outline, just make sure you add some other accessibility feature for people using the keyboard, for instance, change the color of your background on focus:

    div {
        margin: 64px;
    }
    
    input {
        font-size: 20px;
        border-radius: 16px;
        border: 2px solid #CCC;
        padding: 2px 12px;
        outline: 0;
    }
    
    button {
        font-size: 20px;
        border-radius: 32px;
        text-transform: uppercase;
        color: #FFF;
        border: 2px solid #CCC;
        background: #CCC;
        padding: 6px 3px;
        cursor: pointer;
    }
    input:focus {
        border-color: #999;
    }
    <div>
        <input type="text" placemark="Search query..."/>
        <button>Go</button>
    </div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing an internship and they are using SVN (although there has been some
There has been some discussion of the merits or demerits / evilness of using
Calling OnPropertyChanged for an ObservableCollection only works when there has been some change to
I recently upgraded to eclipse indigo from galileo. There has been some changes in
Lately there has been a problem running some of our reports in access. Last
I believe there has been some up-take of model-driven development / engineering (aka OMGs
There has been some discussion on the SO community wiki about whether database objects
There has been some questions on how to generate random numbers in URL links
There has been some mention of using 4.0 libraries from a 2.0 app, using
There has been some talk of Website performance monitoring tools and services on stackoverflow,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.