Dear all, I build a web site using core php. How to convert all my css script files (Ex. demo.css, demo2.css ) into single css file as style.css. anybody know the answer reply me. Thanks.
Open up a text editor, create a blank document... open another copy then open the first .css file, then copy/paste into the first one... lather, rinse, repeat. Though if those multiple files are for a single MEDIA target, it is likely the whole thing is so poorly written the CSS - and possibly the markup - needs to be tossed. That's a wild guess, but if it's split up into enough files you need to recombine them down, it's VERY likely the rest of it is poorly written trash too... that it's built with a framework only adds to that suspicion.
There is a method: rakaz.nl/2006/12/make-your-pages-load-faster-by-combining-and-compressing-javascript-and-css-files.html
I'm surprised nobody offered up leaving them in their individual stylesheets, and just importing them all into one stylesheet and then just loading this single sheet.
If you mean using @import, that defeats the entire reason to combine them! In fact it makes things WORSE!!! Why? Simple, the only real reason to combine them down is to reduce the number of handshakes to the server during page load, speeding things up. Making another file filled with @import just makes ONE MORE file, not less, making the page slower to load. HARDLY a good solution.
hi, This is simple.. Make it 2 step 1. you copy all code in your 2 css file. 2. Paste all code in single file save demo.css thats all...