CSS Poll
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
1. lowercase
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
camelCase
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
1 & 5
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
Tag specific classes in lower case (
, , etc.). Classes are either in PascalCase or camelCase. Usually camel, though mostly lowercase as I use single word names for most classes. This is mostly at-home stuff. I haven't done any "professional" site-design work yet. :) Flynn
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
2 seems the most natural to me. Variety in formats for names makes for mistakes in coding, logic, and display. I have not found where camel case does not apply. I can see 4 as a good alternative, but the upper case/lower case confusion starts to creep in. I guess it is what you are used to.
"Coding for fun and profit ... mostly fun"
-
You need a chainsaw to kill someone or yourself when your css class works differently with differrent browsers.
My .NET Business Application Framework My Home Page My Younger Son & His "PET"
modified on Thursday, August 20, 2009 6:25 PM
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
My options: - CSS: #3 and #6(eventually) - javascript: #2 - html: #1 And one file by language.
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
-
Do you name your CSS classes 1. lowercase 2. camelCase 3. PascalCase 4. UPPERCASE 5. dash-separated (in combo with 1-4) 6. C_style_separated (in combo with 1-4)
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
I was using 3 (MyClass), but since I start learning and now most commonly use JS in sites, I use 2 (myClass). It is extremely readable (but depends on the font I use)