I've had some issues with validating XHTML with divs in a form. The "not allowed here" message.


Anyone else get that?

Cheers
Jame

Ben Boyle wrote:

label.submitbuttons input


...


wonder if just
.submitbuttons input
would work?



Yep. This allows the "submitbuttons" class to be specified on any parent element, not just a <label>. On some pages you could use <label>, on others you could use <div>, or you could use <form>, etc.

These kind of "open" selectors can be really useful if you're designing a
stylesheet that many designers will need to work with (like a corporate
stylesheet). Quite handy - worth thinking about when putting your stylesheet
together, when to constrain stylesheet rules based on elements on class, or
leave them unconstrained.

cheers
Ben


*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************




*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************




Reply via email to