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

[eluser]CroNiX[/eluser]
Javascript and PHP are pretty much the same in that regard, as well as all other "languages". They don't like hyphens because that generally is a subtraction operation, so you can't use them in variable names, function names, etc. CSS doesn't care, as it's not a "language" and either hyphen or underscore will work fine, are are both valid/legal. Javascript and php don't care about hyphens in strings, like id's or classnames though.


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