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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:24:13+00:00 2026-06-15T18:24:13+00:00

I have a multiple choice field, something like this: ft = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple) which can

  • 0

I have a multiple choice field, something like this:

ft = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple)

which can have any no. of options. The problem is those do not display in an aligned manner but rather are done randomly and look clumsy. This messes up the whole look of the form. I am open for a django solution to this, probably by overriding the CheckboxSelectMultiple widget or even by adding a new class in CSS. I cannot change the .aligned in django/contrib/admin, as mentioned in some other site.. Thanks in advance.

  • 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-06-15T18:24:14+00:00Added an answer on June 15, 2026 at 6:24 pm

    This solved my issue..
    We can add a CSS element[class or id] as below..

    #field-checks ul
    {
    width:700px;
    }
    #field-checks ul li{
    display :block;
    width:200px;
    float:left;
    }
    

    Now use the element

    "field-checks" 
    

    in the html file.

    Here the main thing is

    dipslay:block
    

    You can set the width as you want depending on how many fields you need in a line. As I needed 3 I used 700 and 200, if u need only two you could use (say) 800 and 400.
    Let me know if this works for you, or you have a better way than this 🙂

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

Sidebar

Related Questions

I'm creating for school a multiple choice program. For this I have to write
I have a ListView with multiple choice entries where some are checked from the
I have multiple projects which are to be hosted together in a Tomcat container,
I have multiple forms for lots of products on my page and want to
I am trying to indent text in a multiple choice field. def __init__(self): super(RegisterFull,self).__init__()
In my models.py i have something like: class LocationGroup(models.Model): name = models.CharField(max_length=200) class Report(models.Model):
I have a form with a simple text field and multiple submit buttons. When
I have a django form that allows a user to select multiple options: CARDS
I'm displaying a choice field in Symfony 2.0.4 with multiple checkboxes. Symfony always displays
I'm trying to have the functionality of a normal SELECT-OPTIONS for a field inside

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.