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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:30:26+00:00 2026-05-26T10:30:26+00:00

I have a problem with my html button and checkbox. Whenever I resize page

  • 0

I have a problem with my html button and checkbox. Whenever I resize page especially making it very small my button and checkbox goes at the bottom. You can check it by running my code. I want the button and checkbox to stay on the same line with the textbox. Please help. Thanks in advance.

compresstest.html

<html>
<head>
<style type="text/css">
 table#tblTest {
  width: 100%;
  margin-top: 10px;
  font-family: verdana,arial,sans-serif;
  font-size:12px;
  color:#333333;
  border-width: 1px;
  border-color: #666666;
  border-collapse: collapse;
 }

 table#tblTest th {
  white-space: nowrap; 
  border-width: 1px;
  padding: 8px;
  border-style: solid;
  border-color: #666666;
  background-color: #dedede;
 }

 table#tblTest td {
  border-width: 1px;
  padding: 8px;
  border-style: solid;
  border-color: #666666;
  background-color: #ffffff;
 }
</style>
</head>

<body>
 <div style="width: 100%;">
  <input type="text" id="searchCompanyText" name="searchCompanyText" />
  <input type="button" id="searchCompanyBtn" name="searchCompanyBtn" value="Search" onclick="searchCompany ();"/>
  <input type="checkbox" id="isActive" name="isActive" checked="checked"   />  Active
 </div>

 <table id="tblTest" style="width: 100%">
  <tr>
   <th>Name</th>
   <th>Address</th>
  </tr>
  <tr>
   <td>Tom</td>    
   <td>UK </td>
  </tr>

  <tr>
   <td>Hans</td>   
   <td>Germany</td>
  </tr>
  <tr> 
   <td>Henrik</td> 
   <td>Denmark</td>
  </tr>
  <tr>
   <td>Lionel</td> 
   <td>Italy</td>
  </tr>
  <tr>
   <td>Ricardo</td>    
   <td>Brazil</td>
  </tr>
  <tr>
   <td>Cristiano</td>  
   <td>Portugal</td>
  </tr>
 </table>
</body>
</html>
  • 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-26T10:30:27+00:00Added an answer on May 26, 2026 at 10:30 am

    You can also use white-space: nowrap; on your div.

    https://developer.mozilla.org/en/CSS/white-space

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

Sidebar

Related Questions

html <button>a</button> <div class=headerer> <p>visit <a href=http://reigel-codes.co.cc>reigel-codes.co.cc</a></p> </div> problem how can I add checkbox
I have a problem with rendering my html page by the same browsers in
I have a problem with regular expressions! How can i count html tags with
Here's the problem: 1.) We have page here... www.blah.com/mypage.html 2.) That page requests a
I have a problem positionning a image in a button. Here's a demo http://problem-demo.hit.bg/index.html
I have a problem related to my previous article css, button selection and html
I have a problem where I have some html like this <p>There is the
I have a strange problem working with HTML,CSS in different browsers: Firefox 3.6 and
I have a problem in integrating PHP and JQuery: My main file is MyFile.html
I have the following problem: I have an HTML textbox ( <input type=text> )

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.