Woops, xhtml is wrong (thats what I get for typing it in through outlook.
(the br tag was incorrect).


<label for=""> <input id="" /><br />

  _____  

From: Sandy Clark [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 11:44 AM
To: CF-Community
Subject: RE: Accessible labels for groups of elements

I do I do.  I use one class in there, checkbox (or radio) because checkbox
and radio can't be differentiated from a regular input element.

Basic Layout in xHTML

<label for=""> <input id="" /></ br>

CSS
body{
    font-size: 100%;
}

label, input, select, textarea{
display: block;
width: 20em;
float: left;
margin-bottom: 1em;
font-size: 1em;  
}

label{
text-align:right;
width: 15em;
margin-right: 3em;
margin-left:0;
}

textarea{
width: 39em;

}
input.checkbox{
margin-left:0;
padding-left:0;
width: 1em;
}

form br {
clear: both;
}

  _____  

From: Deanna Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 11:36 AM
To: CF-Community
Subject: Re: Accessible labels for groups of elements

I said "ew" too  - but it's the code I've seen on every other site
that uses css for form layout... If you don't use the spans, you can't
get the various labels and inputs to line up vertically. If you have
code that does it, I'd looooooove to see it. :)
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to