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

The Archive Base Latest Questions

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

Following is my HTML for submit button : <div id=header> <table> <tr> <td><h1></h1></td> <td><input

  • 0

Following is my HTML for submit button :

<div id="header">
     <table>
        <tr>
            <td><h1></h1></td>
            <td><input type="text" name="search" class="search"/>
             <input type="submit" class="search-btn" name="submit" value="Search"/></td>                        
        </tr>
      </table>
</div>

And following is my CSS :

#header table td .search-btn{width: 60px; margin-left: 5px;                                                          
                             border: 1px solid #D5EA3B;
                             padding: 9px;
                             display: inline-block;
}

The issue is when I am trying to add padding it disabling the submit button (non-clickable) and if I am removing the padding then its enabling it (clickable). This is really weird issue. I am not getting whats exactly this.

Any help would be appreciated.

  • 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-15T18:44:04+00:00Added an answer on June 15, 2026 at 6:44 pm

    Okay.

    So first your CSS isn’t quite correct that you pasted, remove the #header table etc..

    .search-btn{width: 60px; margin-left: 5px;                                                          
                                 border: 1px solid #D5EA3B;
                                 padding: 9px;
                                 display: inline-block;
    }
    

    So the padding isn’t the issue, the border is the issue making it appear that it isn’t clicking. If you visit: http://jsfiddle.net/3w4e5/2/ you see that the button works as expected,however when you re-add the border is appears to be broken.

    You will want to create a hover and active version of the button as well:

    See: http://jsfiddle.net/3w4e5/3/

    Update:

    See this fiddle for an active & hover CSS versions added in so it shows that the button is hovered and clicked on, your initial CSS make it’s so the button doesn’t look like it’s being clicked but it is.

    http://jsfiddle.net/3w4e5/4/

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

Sidebar

Related Questions

I have the following html code : <div class=submit><input type=button name=getResult value=Get Comments class=sbutton
I have the following HTML code for Save button: <input type=submit onclick=return confirm('Sure to
I have the following html <form action= class=form-horizontal id=submitForm> <input class=required input-xxlarge type=text placeholder=Please
I have the following form: HTML <form id="myForm" action="" method="post"> <div id="edit-box"> <INPUT type="submit"
Given the following HTML and function: <input type=text onfocus=TextBoxFocus() id=txtName /> . function TextBoxFocus()
I have the following HTML <div class=myclass value=1> <div> <div class=myclass value=> <a class=popup
I have the following code: HTML: <div id=login class=transparent-div login_leaf_class> <input class=pointer login_fields_button id=submit_button
I have the following HTML: </td><td> <div id=arrow></div> </td> <form method=POST action=index.php> <input type=hidden
<HTML> <BODY> <table id=header-table> <tr> <td id=globalSearchCell class=last-child style=padding-bottom: 0.5em; vertical-align: bottom;> <input class=search-submit-button
I have the following html table <table id={64ED3A94-5833-4CC7-869F-CCE583B498BE} class=ms-listviewtable width=100% cellspacing=0 cellpadding=1 border=0 xmlns:o=urn:schemas-microsoft-com:office:office

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.