-----Original Message----- From: Philippe Wittenbergh [mailto:[EMAIL PROTECTED] Sent: 07 November 2008 12:17 To: CSS-D Cc: Edward Collier Subject: Re: [css-d] Just how pure must it be?
On Nov 7, 2008, at 8:06 PM, Edward Collier wrote: > For example, I'd like to set the width of all the "input" form > controls > in fieldsets to the same value. > > .formcontent input {width:300px} > > However, this sets the width of submit buttons as well. Can I > restrict > it to inputs of type "text" only? Or do I need to apply the class > explicitly to all the controls? input[type="text"] {width:300px} will do fine in most browsers [1]. Unfortunately, that won't work in IEplorer 6, an oldie that still is used by way to many people. In that case, appending a class to the textfields, and use that as a selector will work. [1] attribute selectors: <http://www.w3.org/TR/css3-selectors/#attribute-selectors> <http://www.w3.org/TR/CSS21/selector.html#attribute-selectors> Thanks Philippe - looks like the way to go! Edward ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/