1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to build all css files to single css file..

Discussion in 'CSS' started by balajikomathi, Jan 11, 2014.

  1. #1
    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.
     
    balajikomathi, Jan 11, 2014 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #2
    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.
     
    deathshadow, Jan 12, 2014 IP
  3. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #3
    HuggyStudios, Jan 12, 2014 IP
  4. Hemant Aggarwal

    Hemant Aggarwal Greenhorn

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    If you are on WordPress then try W3 Total Cache. It minifies the files and also combines them.
     
    Hemant Aggarwal, Jan 13, 2014 IP
  5. balajikomathi

    balajikomathi Member

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #5
    i am using core php only...not wordpress. how to bundle css files..into single file.
     
    balajikomathi, Jan 13, 2014 IP
  6. Hemant Aggarwal

    Hemant Aggarwal Greenhorn

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #6
    There is a method: rakaz.nl/2006/12/make-your-pages-load-faster-by-combining-and-compressing-javascript-and-css-files.html
     
    Hemant Aggarwal, Jan 13, 2014 IP
  7. slime

    slime Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    3
    #7
    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.
     
    slime, Jan 19, 2014 IP
  8. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #8
    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.
     
    deathshadow, Jan 20, 2014 IP
  9. Murugesan.quadraincorp

    Murugesan.quadraincorp Greenhorn

    Messages:
    15
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #9
    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...
     
    Murugesan.quadraincorp, Jan 23, 2014 IP