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

  • Home
  • SEARCH
  • 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 8940103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:57:49+00:00 2026-06-15T10:57:49+00:00

Warning, this is possibly the easiest possible question ever asked here. I have a

  • 0

Warning, this is possibly the easiest possible question ever asked here.
I have a form like this:

  <div data-dojo-type="dijit.layout.ContentPane" data-dojo-attach-point="loginPane" data-dojo-props="title: 'Login'">
    <div data-dojo-type="hotplate.hotDojoWidgets.AlertBar" data-dojo-attach-point="loginAlertBar"></div>
    <form data-dojo-type="dijit.form.Form" data-dojo-attach-point="loginForm" method="POST">
      <label for="${id}_login">Login</label>
      <input name="login" id="${id}_login" data-dojo-attach-point="login" data-dojo-type="dijit.form.ValidationTextBox" data-dojo-props="required:true"/>
      <label for="${id}_password">Password</label>
      <input type="password" name="password" id="${id}_password0" data-dojo-attach-point="password" data-dojo-type="hotplate.hotDojoAuth.ValidationPassword" />
      <input type="checkbox" name="remember" id="${id}_remember" data-dojo-attach-point="remember" data-dojo-type="dijit.form.CheckBox" />
      <label for="${id}_checkbox">Remember login</label>    
      <input type="submit" data-dojo-attach-point="loginButton" data-dojo-type="hotplate.hotDojoWidgets.BusyButton" label="Login!" />
    </form>
    <div data-dojo-attach-event="onclick:_onRecoverClick">Recover your password</div>
  </div>

It’s a pretty basic form. Now, what I want to do is simple: I simply would like the label “Remember login” to be NEXT to the checkbox. As simple as that.
I would also like a little more space between the password field and the checkbox.

Now, what is the easiest, neatest way of doing this? (Please do it just adding “style=” within this template, I will add it to the CSS properly).

I tried display:inline for the checkbox. However, it ends up not displaying at all, as Dojo seems to place it on the far left hand side of the page (?).

I will need to create a “new customer” form, and I would love to be able to place things next to each other and create neater layouts, rather than the usual one-field-per-line form.

BONUS QUESTION: what’s the easiest way to get a border to appear around a group of widgets? Something classy.

Thanks!

Merc.

  • 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-15T10:57:50+00:00Added an answer on June 15, 2026 at 10:57 am

    As posted in my comment above, I’d just use a table as I think this is fine for a form. However, many people would disagree with me.

    If you want to avoid tables you could place the checkbox inside the <label>. You can bind a control to a label, either by using the for attribute or placing the control inside the <label>.

    • See w3 tutorial on label use

    Hence, you could change:

    <input
        type="checkbox" name="remember" id="${id}_remember"
        data-dojo-attach-point="remember"
        data-dojo-type="dijit.form.CheckBox" />
    <label for="${id}_checkbox">Remember login</label>
    

    to:

    <label style="margin-left:10px">
        <input
            type="checkbox" name="remember"
            data-dojo-attach-point="remember"
            data-dojo-type="dijit.form.CheckBox"
        />Remember login
    </label>
    

    This should place the label to the right of the checkbox and bind the label to the checkbox. I’ve also, added a margin-left to the label so that space is created between your password field and the checkbox.

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

Sidebar

Related Questions

Warning: This question has been heavily edited. I tried my best to guess the
I have this warning every time I run my CGI-script (output is rendered by
i get this error: Warning: Unknown: Your script possibly relies on a session side-effect
Possible Duplicate: PHP session side-effect warning with global variables as a source of data
Possible Duplicate: PHP: “Notice: Undefined variable” and “Notice: Undefined index” This code shows warnings
Warning: This is inherited legacy code that was initially put together in the early
Since in log4j javadoc is WARNING: This version of JDBCAppender is very likely to
I got this warning: 'UIView' may not respond to 'addSubview:withAnimation:' The line of code
I get this: Warning: session_start(): Cannot send session cookie - headers already sent by
I get this warning in my error logs and wanted to know how to

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.