?
Solved

CSS file naming convention

Posted on 2014-09-08
4
Medium Priority
?
218 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 2000 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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 …
Suggested Courses

770 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