Solved

CSS file naming convention

Posted on 2014-09-08
4
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 33

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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 …

717 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