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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:32:51+00:00 2026-05-28T03:32:51+00:00

I need a web page with this: +——-+——————-+ | label | [] a checkbox

  • 0

I need a web page with this:

+-------+-------------------+
| label | [] a checkbox     |
+-------+ with a big text.  |
        +-------------------+

I have this HTML:

<div class="outer">
    <label>label</label>
    <div class="box">
        <input type="checkbox"> a checkbox with a big text
    </div>
</div>

And this CSS:

.outer { clear: both; width: 400px; }
label { float: left; width: 100px; }
.box { dislay: table; /* also works with table-cell */ }

Notice that I’m using display: table to avoid this:

+-------+-------------------+
| label | [] a checkbox     |
+-------+                   |
| with a big text           |
+---------------------------+

The box div will not have any table rows or cells – just some flow content (a check box and some text, for now).

My question: Is it adequate to use display: table, or should I use display: table-cell even without an outer display: table element? Suppose in the future someone chooses to put all this inside a table element, or a display: table element? Which display option would be more robust?

  • 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-28T03:32:52+00:00Added an answer on May 28, 2026 at 3:32 am

    Try this HTML:

    <div class="outer">
        <div class="left-col">
            <label>label</label>
        </div>
        <div class="right-col">
            <input type="checkbox"> a checkbox with a big text
        </div>
    </div>
    

    With this CSS:

    .outer { clear: both; width: 400px; }
    .left-col { float: left; width: 100px; }
    .right-col{ float: left; width: 300px; }
    

    You may need to have a fixed height for both columns

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

Sidebar

Related Questions

We need to place text over objects in a web page, similar to this:
So I have this web page I need to debug in IE (9). I'd
I have a friend who is need of a web page. He does interior
I need to play .vox files on my web page. Does anyone have any
I have a section of a web page that I need to take a
From this web page : http://tldp.org/LDP/abs/html/abs-guide.html It's mentioned the usage of the if bracket
I have a web page where users need to enter customer contact information. They
I am designing an html web page that mimics inline panes by defining this
Consider this title for a web page: This is a mixed text from right-to-left
I need to place a div in certain part of my web page. so

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.