Solved

CSS file naming convention

Posted on 2014-09-08
4
210 Views
Last Modified: 2014-09-22
How do you name your CSS file if it has more than one word to describe it? For example

All lower case:  proposalsubmenu.css
Camel Case: proposalSubMenu.css
Pascal Case: ProposalSubMenu.css

Thanks
0
Comment
Question by:cdemott33
  • 2
4 Comments
 
LVL 32

Expert Comment

by:Big Monty
ID: 40310717
I use Camel Case, just the way I was personally taught.
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40310728
it's personal preference, but I use Camel. However, when doing Linus etc.. you rack your brain as to what is going on, only to find that your case was wrong.. lol
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40310735
If you are on linux always use lowercase and seperate with an underscore if you desire
Since linux is case sensitive its best to use lowercase so you don't have to always check the file name case.
Windows servers don't care about the case

But in general lowercase is always the better choice for urls
The Q is about a CSS file so it doesn't matter but search engines regard the same file with different case as different files.
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40310742
Yep.. agree w/ Gary.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now