Welcome Guest, Not a member yet? Register   Sign In
what name spacing to use for div id's and classes?
#7

[eluser]kanjimaster[/eluser]
As InsiteFX says, avoid underscores, but as to whether to use camel casing or hyphens, it makes little difference, just choose whichever you prefer and stick to it, or go with whatever the authors of any javascript library you're using do, or do the opposite so that you can tell your ids and classes from those that the library inserts.

There's not a single right answer to this, other than once you've chosen, be consistent.


Messages In This Thread
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 03:32 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 04:05 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 04:51 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 11:40 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 11:41 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 01:57 AM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 01:59 AM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 05:34 AM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 01:40 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 02:04 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 02:08 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 04:48 PM
what name spacing to use for div id's and classes? - by El Forum - 06-25-2012, 01:01 AM
what name spacing to use for div id's and classes? - by El Forum - 06-25-2012, 01:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB