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
Solved

CSS file naming convention

Posted on 2014-09-08
4
215 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

839 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