Solved

CSS file naming convention

Posted on 2014-09-08
4
203 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:Iammontoya
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:Iammontoya
ID: 40310742
Yep.. agree w/ Gary.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

758 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