[WSG] Forms question

2005-05-23 Thread Leslie Riggs
When validating a page containing a form for XHTML 1.0 Transitional, I get the following message regarding a textarea: required attribute cols not specified Why can't we specify a percentage width for the textarea in the CSS instead? It works, but it doesn't validate without the cols

Re: [WSG] Forms question

2005-05-23 Thread Parker Torrence
cols is used to define the number of characters on a line. That is percent is giving you an error. The default for this in html 4.01 is 80. I believe in xhtml it is required to be defined. Parker Unfolded WebDesign http://webdesign.parkertorrence.com On 5/23/05, Leslie Riggs [EMAIL PROTECTED]

Re: [WSG] Forms question

2005-05-23 Thread Leslie Riggs
I'm using XHTML 1.0 Transitional. I don't have a percentage defined in the markup. It's defined in the CSS as width: 65% and I left the cols attribute unspecified. What I want to understand is why is cols required by the W3C standard, if the width can be defined in CSS? Is there a specific

Re: [WSG] Forms question

2005-05-23 Thread Peter Asquith
Leslie Riggs wrote: What I want to understand is why is cols required by the W3C standard, if the width can be defined in CSS? The way I find it easiest to explain is to think about what happens if CSS was to be disabled in the browser, or the browser was incapable of processing CSS (take

Re: [WSG] Forms question

2005-05-23 Thread Leslie Riggs
Isn't the default 80 columns? Leslie Riggs What I want to understand is why is cols required by the W3C standard, if the width can be defined in CSS? The way I find it easiest to explain is to think about what happens if CSS was to be disabled in the browser, or the browser was

Re: [WSG] Forms question

2005-05-23 Thread Peter Asquith
Leslie Riggs wrote: Isn't the default 80 columns? From the DTD, my understanding is that cols is a required attribute but no default value is specified (see http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd). It could be that the defaults you refer to are browser defaults. Cheers