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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:04:40+00:00 2026-05-22T02:04:40+00:00

I have two fieldsets (as below) that are inside a div. They have been

  • 0

I have two fieldsets (as below) that are inside a div. They have been style inline and 50% width. In my head I think they should display on the same line but (at least in chrome, haven’t checked IE or ff) the second one wraps to the next line.

I have a twofold question:

  1. Why oh why oh why!?
  2. Is there an easy fix for this? (other than maybe setting them to be 49.8% width)?

http://jsfiddle.net/z22KR/2/

*
{
    box-sizing: border-box;
}
fieldset
{
    margin: 0px;
    border: 0px;
    padding: 0px;
    display: inline-block;
    width: 50%;
    background-color: grey;
}

div
{
    width: 100%;
    margin: 0px;
    padding: 0px;
    border: 0px;
    background-color: green;
}

div div
{
    background-color: red;
}

<div>
    <fieldset>1</fieldset>
    <fieldset>2</fieldset>
    <div>div</div>
</div>

Edit I changed inline to inline-block as I intended. Sorry for the confusion there.

Edit2 Also would rather not do any floating if at all possible.

Edit3
My html looks more like

<div class="twoChildren">
    <fieldset id="fieldset1"><legend>Fieldset 1</legend>
        <div id="listofStuff1">
            <table>
            ...
            </table>
        </div>
    </fieldset>
    <fieldset id="fieldset2"><legend>Fieldset 2</legend>
        <div id="listofStuff2">
            <table>
            ...
            </table>
        </div>
    </fieldset>
</div>
  • 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-22T02:04:41+00:00Added an answer on May 22, 2026 at 2:04 am

    There are many mistakes in your css, please study and write logically. btw do you want like this??

    DEMO

    EDIT

    I find below things are not Good practice, please correct me if i am wrong

    • Using div div {} is misleading, better use class and id selector
    • also optimize your css , when you always need margin ,padding and border to 0px then why dont you write on the top with *{}
    • and also set the css in the order your elements are in the DOM, you first declare css for fieldeset then set css rule for div

    @James Valid CSS is another issue and optimize CSS is another

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

Sidebar

Related Questions

I have two <fieldset> s inside a single div (nothing else), that are positioned
I have two applications written in Java that communicate with each other using XML
Okay, here is my problem: I have a form that requires to have two
Here's the HTML <div class=panel id=Panel1> <fieldset style=position: absolute; top:8px; left: 136px; width: 136px;
i have two richtextboxes one below the other in my application.when the user start
I have two distinct databases as a source for a Silverlight RIA application. They
The problem is: I have the an Ajax.BeginForm, that essentially consists of two dropdownlists
[CONFIRMED: IE9 suffers the same bug! :'( ] I have a div that is
I have two canvas's in a Grid, full scene images that I want to
I have two arrays of animals (for example). $array = array( array( 'id' =>

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.