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 9125373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:47:21+00:00 2026-06-17T06:47:21+00:00

So, I was messing with CSS for my buttons and tried to test the

  • 0

So, I was messing with CSS for my buttons and tried to test the following CSS code on the button element:

button {
    width:85px;
    height:29px;
    background-color:#800080;
    color:#FFFFFF;
    font-size:14px;
    font-weight:bold;
}

The 2 buttons at the end are created by this HTML:

<div id="header">
    <div id="logo"><img src="logo.jpg" /></div>
    <div id="search">
        <form id="search-form">
            <input type="text" style="width:80%;height:28px;background-color:#F5F5F5;font-size:16px;position:relative;top:-3px;"/>
            <button type="button" style="position:relative;top:6px;"><img src="mgt.jpg" /></button>
        </form>
    </div>
    <div id="upload" class="top-button"><button>Upload</button></div>
    <div id="signin" class="top-button"><button>Sign in</button></div>
</div>

Last 2 buttons “upload” and “signin” are the ones n question.

and the result:

Buttons with weird purple box under them

As viewed in Firefox. Any ideas what is causing this?

  • 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-17T06:47:23+00:00Added an answer on June 17, 2026 at 6:47 am

    I don’t see the issue …. Check out http://jsfiddle.net/vb7S3/

    But I would still recommend not to use <button> tags and rather define style classes for #upload and #signin.

    HTML

    <button id="upload" class="top-button">Upload</button>
    <button id="signin" class="top-button">Sign in</button>
    

    CSS

    #upload, #signin {
        width:85px;
        height:29px;
        background-color:#800080;
        color:#FFFFFF;
        font-size:14px;
        font-weight:bold;
    }
    

    Also <button> is tag may not be supported by all browsers.

    Better Way…

    HTML

    <input id="button" class="upload-button" type="submit" value="Upload" />
    <input id="button" class="sign-in-button" type="submit" value="Sign In" />
    

    CSS

    #button {
        width:85px;
        height:29px;
        background-color:#800080;
        color:#FFFFFF;
        font-size:14px;
        font-weight:bold;
    }
    

    Must include <input> tag inside the <form> ... </form> block.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried to build a simple comments-view using css and jquery, where at the
I have a couple of buttons inside a div with a specific width, and
Check out this code sample of a button and an anchor: http://jsbin.com/ecitex/2/edit I'm trying
I am messing around with a pure CSS dropdown menu and I've noticed that
I use the the following code to show a dialog with jQuery UI: var
I am having problems messing with some css to get it to look the
I can't figure out why my CSS won't work with my submit button. Am
I tried changing the script to the following and it still doesn't trigger the
I have been messing around with JS and CSS. I have an anchor with
I have some jQuery code that highlights which radio button is checked by turning

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.