473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CSS Large project logic

115 100+
I've been thrown into the world of web development and have neared completion on my first project. One thing I quickly discovered was the necessity of CSS to keep things consistent. Currently, I have all the my style classes in one file (styles.css) As I go back to tweak/make changes I find the file to be too cumbersome to read quickly. I would like to separate the CSS classes into different files for easy locating and easy reading; However, I would like to leave all my html files to only include the one "styles.css" file so when I make new pages I dont have to make sure I include every style sheet. So far I dont think thats possible..

So, my questions..What is the best way to handle CSS in large projects? Can there be any kind of inheritance of CSS files from one to the other?
Jul 7 '08 #1
1 1363
hsriat
1,654 Expert 1GB
I ran into a somewhat similar situation, and I discovered a solution myself. Though I'm not sure if this is a good solution.
But what I did was, I created a PHP file with declared constants on the top. These constants contains constants like 'COLOR1', 'COLOR2', 'FONTS1' etcetera, so that changing one constant could change the look of entire web in a regular way.

The PHP file sends different style information depending upon the GET parameters.
Jul 7 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Deke | last post by:
I will be embarking on a large web project. I am still researching as to which language use - PHP or Perl. Can someone clear up some of the bad publicity with PHP in the links below? They are...
36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
1
by: Christopher Benson-Manica | last post by:
We have a fairly large (1500 line) .js file that contains script that most of our pages use. My personal opinion is that this is not easy to maintain, but others are concerned that with the script...
2
by: marco.avidano | last post by:
I'm asking: for the PHP parser, it's better to create one large file with all the code inside or a lot of small files? Can a large file slow down the execution of the script?
4
by: Chris | last post by:
Where I work, we basically have 1 large ASP.NET application that we work on. This is compiled into one big DLL. I think it would be a good idea to somehow break up the project, so that if I...
6
by: liu | last post by:
Hi all, in my vb.net solution, i have 3 project: 1. Main-this is the startup or the base of my window application. 2. Sales-this is the project that contains all the sales info 3. Product-this...
9
by: joe | last post by:
Hello, I have a website set up on our server that is especially for errors. When another website encounters an error, it will redirect to this site with error details in the querystring. The...
22
by: Jesse Burns | last post by:
I'm about to start working on my first large scale site (in my opinion) that will hopefully have 1000+ users a day. ok, this isn't on the google/facebook scale, but it's going to be have more hits...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.