On 6/11/05, David Hucklesby <[EMAIL PROTECTED]> wrote:
> I believe that all four are correct. Personally, I do not use underscores
> as some (older?) browsers may not accept them.

Netscape 4.x IIRC ... but I don't serve CSS to that browser in the
first place, so its not a worry of mine. (If you do send CSS to that
browser, then avoid underscaores)

> I would also avoid
> hyphens in ids, since you may later want to manipulate elements
> with JavaScript / ECMAScript using the id. The script may misinterpret
> the hyphen as a minus sign.

That's easy enough to work around, use the foo['my-id'] notation
rather than the foo.my-id notation.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to