473,386 Members | 2,050 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.

Multiple CSS

TheServant
1,168 Expert 1GB
I have been looking through the tonnes of pages/forums about using multiple CSS's and I was wondering if all CSS's are cached if you have more than one?

I have read both sides of the debate on whether or not to use multiple CSS files, and I have been using one for a long time now, but it is getting very big and difficult to edit (as it's still in dev) so I am going to try have more than one. Anyway, once it's finished I might put it all back into one, but at the moment the readability advantages look more valuable than the tiny increase in efficiency? Any personal thoughts appreciated.
Feb 21 '09 #1
8 2174
Markus
6,050 Expert 4TB
@TheServant
This is not a definite answer, but it would seem silly to me that a browser wouldn't cache more than 1 external css file. Lot's of big websites use multiple css files. I wouldn't worry about it.
Feb 21 '09 #2
drhowarddrfine
7,435 Expert 4TB
The only disadvantage of multiple files is multiple http requests. Whether that slows things down for the site depends on the internet connection and the server.
Feb 21 '09 #3
tharden3
916 512MB
Sorry for my ignorance (but I value learning), what do you mean by multiple CSS files? Do you mean multiple files for multiple HTML pages? Or in your case using one CSS file for multiple HTML pages? Would one CSS file reduce load times for a site? Just curious.

Thanks,
Tim
Feb 21 '09 #4
David Laakso
397 Expert 256MB
...what do you mean by multiple CSS files?
Short Answer:
Taking one extremely long style sheet and dividing into individual (5 in this example) style sheets:
layout.css
typog.css
color.css
links.css
misc.css
Feb 21 '09 #5
tharden3
916 512MB
@David Laakso
oh, I see. Thanks. That's kind of interesting, I never thought of doing it like that. My CSS pages are getting longer and longer with this new website I'm designing, so I could understand how separating them could be more efficient.
Feb 21 '09 #6
David Laakso
397 Expert 256MB
I could understand how separating them could be more efficient.
It could also wind up being an inefficient ball of confusion. Different strokes for different folks. The method that is best for you will find you...
Feb 21 '09 #7
TheServant
1,168 Expert 1GB
Thanks for all your replies, I will give it a go, but as David said, it is actually possible to be even more confusing which I quickly realized.

Regards,
TheServant
Feb 21 '09 #8
drhowarddrfine
7,435 Expert 4TB
@TheServant
It can be at first but it's a mindset and depends on how you write the html. The first time I did it, it wound up being a big mess. The second time made perfect sense.
Feb 21 '09 #9

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

Similar topics

6
by: Rolf Wester | last post by:
Hi, I have a form with a select element with multiple="true". When using the GET method (I suppose the same happens with the POST method) I can seen that the form sends channels=CH1&channels=CH2...
66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
6
by: Ben Hallert | last post by:
Hi guys, I'm trying to figure out what bone headed mistake I made on something I put together. I've got a form (named 'context') that has a variable number of select-multiple inputs on it. ...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
4
by: Matt Kruse | last post by:
While developing an internal IE6-only webapp, a discussion started about the 'best' way to apply classes to data tables across multiple pages. The two arguments were: 1. Apply a single class to...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
58
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.