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

  • SEARCH
  • Home
  • 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 9164653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:44:03+00:00 2026-06-17T14:44:03+00:00

I am having the following html structure in my page <button class=badbutton><span>Text</span></button> The reason

  • 0

I am having the following html structure in my page

<button class="badbutton"><span>Text</span></button>

The reason for this is so that I can make the text go a bit lower when the button is pressed, by means of relative positioning of the span when the button is active.

However, in Firefox I have an issue that I cannot solve. When the button is pressed, the span inside it gets a dotted outline, that persists even after the button is no longer pressed. I am attaching a link to an image depicting what I describe.

https://i.stack.imgur.com/mIL1R.png

I have tried everything I could think of in the css, to no avail.

a, a:active img, 
span, 
span:active,
span:focus, 
button, 
button:active span, 
button:focus span, 
button:focus, 
button:active {
    border: none;
    outline: none !important;
}

Any help will be much appreciated.

EDIT: After a friend’s proposal, I ditched the spans altogether and opted to increase the top padding of the button instead, when pressed. Alas, Firefox just keeps adding an outline around the words.

  • 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-06-17T14:44:04+00:00Added an answer on June 17, 2026 at 2:44 pm

    The outline is a focus indicator.

    It’s not implemented with CSS borders or outlines on the button itself, since those have a quite different behavior.

    You can get rid of it with

    ::-moz-focus-inner { 
      border: 0;
      padding: 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having following class hierarchy - //Abstract Class1 in library1 (Can't modify this)
Having the following html structure: <tr class=invisible> <td align=center> <a class=i_edit data-target=30></a> </td> <td
I'm following this tutorial http://www.vogella.com/articles/AndroidIntent/article.html for having some data transfered to parent activity by
The xml file is having the following structure <?xml version=1.0 encoding=utf-8?> <?xml-stylesheet type=text/xsl href=TestFile.xsl?>
I am having following action link: <%= Html.ActionLink(Check this, Edit, test, new { id
Consider the following html http://www.carbide-red.com/prog/test_table.html I have worked out that I can move left
let's say i am having fallowing html structure- <div data-theme=a class=ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow
I'm having trouble understanding jqueries .each. I have the following code: $('#testDiv').each(function(index, domEle){ $(this).text(index);
This is a problem I am always having. The following HTML: <form id=sy_login> <ul
I have the following HTML structure, (This cannot change). <!-- Comment 1 --> <div

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.