I'm unsure how to validate XHTML with Rails.  Since I'm working in development 
mode the app is not online somewhere, just using localhost.  Also many rhtml 
files are just snippets of what the entire page will comprise with Rails output.

Stuart


-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Monday, August 7, 2006 6:16 PM -07:00
To: Mark Fellowes [EMAIL PROTECTED];CSS List [EMAIL PROTECTED]
Subject: [css-d] Form pain

Hi,
First, the fieldset/form tags are improperly nested.   You need to have
valid HTML for your CSS to work right. You can use
http://validator.w3.org/ to check if you HTML is valid.

I assume you are trying to have a grid type layout where the label and
fields line up horizontally and vertically. 
The problem is that your labels are shrinking down to the size of the
text inside because they are floats.  Email looks misaligned because it
is noticeably shorter and wasn't pushing the text box over as far as
first name, last name,  password and account type.

A quick way get a grid like layout is:

label {float:left; clear:left; width:15em;}
input, select { display:block; margin-left:16em; }

Hope that helps!

-Mark



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to