Jump to content

Alternative way of aligning?

Recommended Posts

vfNCJp.pngI have a form that looks like this. I currently have it set up using two div tags. The left side is one and the right side is another. If I have my cursor in the Email Address input and press TAB, it goes to Password input. I want to set it up where it looks exactly the same, but when I press TAB, it goes to Confirm Email Address input. Basically, I am wondering how I could align my page without using separate tags, so when I press TAB, it goes to the next one.
Link to post
Share on other sites

If, for example, you start off with a tabindex 5 and go on through 6, 7, 8, 9 and 10, then the browser will tab through every other element it finds until the fifth time you press the tab. Then it will go through the form inputs and, after that, it will continue the way it normally would through the elements that haven't been used yet. If you want a different way to set up the form elements, another option is to have six individual <div> elements with a fixed width, float them to the left and use clear: left on every second one.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...