I tend to like breaking my CSS up into various sheets... I have screen.css and print.css, as well as typography, forms and others. I personally find it much nicer easier to manage whilst designing the layouts.
I also find it more flexible for doing specific things - if a page requires a totally different typography.css, i can chose to load that instead. Not sure whether its the most efficient way to load them up, but as you point out CSS gets cached at the browser so the 'cost' is only on first load. I do it out of personal preference, not "best practice" On Fri, Mar 11, 2011 at 5:01 AM, Krissy Masters <[email protected]>wrote: > What are your views on breaking up css files? 1 master css sheet vs many > smaller specific variants? > > > > I am using asset helper so all css js is compressesed / minimized / and > ends up being 1 file each. > > > > Just for this question take colorbox or fancy box css for example, its not > a large file but you only need it on 5 of your 100 pages so you could > simply just paste the css into your master sheet or include it in the 5 > specific pages. > > > > I am just looking at my massive css sheet( 1300 lines) and 90% of it is for > backend member pages so why include all that into the public pages. But then > I think well its all cached anyways after the first load 53k (18k gziped) so > we are not talking huge loads here so my question is does it make sense to > break css up into forms, typography, styles, wysiwyg, colorbox, other > specific function css sheets that you may have? > > > > Thanks guys, > > > > K > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
