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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:15:52+00:00 2026-06-11T13:15:52+00:00

Ok so i have for example this field in my formModel RItitle = models.CharField(max_length=100)

  • 0

Ok so i have for example this field in my formModel

RItitle = models.CharField(max_length=100)

In my template:

            <tr>
                <th>RI Title </th><th>  {{ wizard.form.RItitle }} {{ wizard.form.RItitle.errors }}</th>
            </tr>

And now HTML :

<tr>
    <th>RI Title </th><th>  <input id="id_0-RItitle" type="text" name="0-RItitle" value="csss" maxlength="100"> </th>
            </tr>

How Can i change html options of this field ?? I mean for example style=”width:150px” or sth like this . I cant use css example:
.input{ width:150px;}
coz i have more then 1 input in this form

Thanks for 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-06-11T13:15:53+00:00Added an answer on June 11, 2026 at 1:15 pm

    Styling should happen through CSS.

    Because you have ID available, you can do it like this:

    #id_0-RItitle {
        width: 150px;
        /* some other styles here */
    }
    

    For doing this programmaticaly, I would suggest using some CSS classes. To modify the widget used for displaying specific field (eg. by changing its class attribute and, if absolutely necessary, style attribute) follow the tips from this question: CSS styling in Django forms

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

Sidebar

Related Questions

A question about symfony form validators. For example I have an url field. If
I have a mysql table and one of the fields is 'template'. This field
Example: We have a conditional field. This conditional field is a radio button with
Consider this example - I have a class called Report that has a field
I have for example this string: iCanSeeBluePeople and I need it to separate it
I have this example FactoryGirl.define do @site = FactoryGirl.create(:my_site) factory :user do email {
I have this example: public class Inheritance { public static class Animal { public
Suppose we have this example: http://techdroid.kbeanie.com/2009/07/custom-listview-for-android.html with source code available here: http://code.google.com/p/myandroidwidgets/source/browse/trunk/Phonebook/src/com/abeanie/ How can
jquery.ui.position is not taking the margin values when positioning items? I have this example,
In this example we have 3 related tables on a SQLite database: CREATE TABLE

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.