Jump to content

help with CSS for form!


atmananda
 Share

Recommended Posts

hi,

I have a contact form with 4 fields; name, email, input text, and security question..

For some reason, I can get the input fields of Name and Email to sit on the left side of their respective input fields, but for Input Text and the Security Question, the label sits on the right of the input field...

 

Anyone have any idea what I'm doing wrong??

 

Thankyou!!

 

http://www.atmananda.com/contact-us/

Link to comment
Share on other sites

You have to put the label before the input in your HTML. Your code should be like this:

<label for="contactName">Name</label><input id="contactName" class="required" type="text" value="" name="contactName">
Link to comment
Share on other sites

How is it not working? Browsers always render from top to bottom, left to right. Elements go to the left of other elements that follow them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...