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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:28:10+00:00 2026-05-13T14:28:10+00:00

A table <table> <tr> <td> <button>10000000000</button> </td> <td> <button>10000000000</button> </td> </tr> </table> and a

  • 0

A table

<table>
    <tr>
        <td>
            <button>10000000000</button>
        </td>
        <td>
            <button>10000000000</button>
        </td>
    </tr>
</table>

and a div

<div> 
  <span ><button>10000000000</button></span> 
  <span ><button>10000000000</button></span> 
</div>

These 2 do the same thing; shows 2 buttons next each other, my Question is how can I keep these 2 buttons next each other in the div if the window gets resized to a smaller area. The table keeps them next each other but I don’t wana use tables.

Tanx for the help

  • 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-13T14:28:11+00:00Added an answer on May 13, 2026 at 2:28 pm

    If your div is styled to have at least the width that is required to be able to keep the two buttons next to each other, then it will maintain that width regardless of what the browser is being resized to:

    <div style="width: 200px;"> 
      <span ><button>10000000000</button></span> 
      <span ><button>10000000000</button></span> 
    </div>
    

    If you want to be able to tell the div to “go ahead and assume 100% width like you normally would, but always allocate at least 200px, even if this is more than 100% width”, you can use min-width:

    <div style="min-width: 200px;"> 
      <span ><button>10000000000</button></span> 
      <span ><button>10000000000</button></span> 
    </div>
    

    Now, this doesn’t work in IE6, but here’s another solution for the same that does:

    <div> 
      <div style="width: 200px;">
         <!-- parent can never be smaller than its biggest child -->
      </div>
      <span ><button>10000000000</button></span> 
      <span ><button>10000000000</button></span> 
    </div>
    

    Another solution, specifically to tell something not to wrap, would be to set white-space which is the CSS equivalent of the now deprecated <nobr/>

    <div style="white-space: nowrap;"> 
      <span ><button>10000000000</button></span> 
      <span ><button>10000000000</button></span> 
    </div>
    

    Note that this latter solution will not allow for any line breaks at all except for those manually created by a <br/> or other block element.

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

Sidebar

Related Questions

I have a big table containing a button in each cell. These buttons are
So I wanted to create a toggle-button for a table, where I can make
I have a table (in a form) populated with radio buttons (with a button
Say that I have three button elements in one parent div. Assuming that these
My c# button adding some data in one table. how can i get id
i have a table which contains a bunch of dynamically created radio button lists,
I want to modify my table view cell apparence when the delete button came
Here's my case: I have a table view showing contacts. Add button in the
I want to change the background color of the table cell when radio button
I've got a gridview that renders as a table. I have an Add button

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.