How do I get the textfield and button attached to each other
Here is my demo
http://jsfiddle.net/dgWqL/2/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can simply remove the whitespace between
#textfield"andinput[type="button"].(Whaaat?) Well, this is your html:
This is the same as having…
…which, as you’d never question, gets rendered as
abc def.It’s the exact same thing.
As I’ve suggested you can simple delete that whitespace by putting the second input right in front of the first one in the html, as so…
Another option is to comment out the whitespace – that’s if you prefer to have each input on it’s own line:
Here’s a fiddle – http://jsfiddle.net/dgWqL/3/