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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:39:18+00:00 2026-05-23T08:39:18+00:00

First question, why is this style label, input { display:block; } reducing the width

  • 0

First question, why is this style

label, input { display:block; } 

reducing the width of the dropdownchecklist drop-down list (the text appears below the checkbox)? The style is needed for other portions of the program so eliminating the style isn’t so simple.

Second question: If I use the dropdownchecklist plug-in outside of a jQuery dialog box, it works perfectly. But if it’s added to a dialog box, the width is reduced to zero and even if I adjust the width in Firebug, it’s not functional (clicking won’t produce a drop-down list). The ‘s9’ id was taken from the dropdownchecklist demo code.

 $(document).ready(function() {           

        $("#s9").dropdownchecklist( { textFormatFunction: function(options) {
            var selectedOptions = options.filter(":selected");
            var countOfSelected = selectedOptions.size();
            switch(countOfSelected) {
                case 0: return "Nobody";
                case 1: return selectedOptions.text();
                case options.size(): return "Everybody";
                default: return countOfSelected + " People";
            }
        } });   

The following code was taken from the dialog demo.

<div class="demo">
        <div id="dialog-form" title="Create new user">
            <p class="validateTips">All form fields are required.</p>            
            <form>
            <fieldset>
                <label for="userid">User ID</label>
                <input type="text" name="userid" id="userid" class="text ui-widget-content ui-corner-all" />                   
                <label for="password">Password</label>
                <input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" />
                <label for="email">email</label>
                <input type="text" name="email" id="email" value="" class="text ui-widget-content ui-corner-all" />                                                      
                <label for="locked">Locked</label>
                <input type="checkbox" name="locked" id="locked" value="" >                    
                <select  id="s9" class="s9" multiple="multiple" >
                 <option>Alice</option>
                 <option>Bob</option>
                 <option>Christian</option>
                 <option>Daniel</option>
                </select>                 
          </fieldset>      
         </form>
</div>

What do I need to change to make dropdownchecklist work in a dialog box? An ordinary drop down box works just fine but I wanted the check boxes to make it simpler for the user to understand.

This SO question sounds like my problem but it doesn’t seem to work for me:
jQuery Plugin does not work in a Modal

Thank you.

  • 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-23T08:39:19+00:00Added an answer on May 23, 2026 at 8:39 am

    Regarding first question: Block-level elements (such as DIV, P etc, or elements made block-level with display: block) generally start on a new line.

    You could use display: inline-block instead, but it has poor support in older IE’s (partial support in IE6/7, no support in older versions). A better way would probably be to put each label+input pair in <div>s and use:

    label, input { 
        display:block; 
        float: left;
    } 
    

    Regarding your second question, could we see a live example or the jquery code?

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

Sidebar

Related Questions

this is my first question to stackoverflow so here it goes... I use cruise
this is my first question here so I hope I can articulate it well
This is my very first question so I am a bit nervous about it
This is my first question so please be patient :) Background: I'm implementing an
Greetings to all! This is my first question here on stackoverflow. I have a
This question might not seem programming related at first, but let me explain. I'm
First of all there is a partial question regarding this, but it is not
So this question will get technical – eventually – but first check out Hanselminutes
First off, this question is ripped out from this question. I did it because
I know this question might sound a little cheesy but this is the first

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.