dcsimg
A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: CSS Magic

  1. #1

    CSS Magic

    After seeing Subway's URL magic I thought to extend the idea to CSS.

    CSS Magic

    It gives a breakdown on the CSS in a document and removes a bunch of needless things like whitespace and comments. It also scans for linked and @imported documents and links to them for more breakdowns.

    It doesn't like @media statements or the voice-family hack, but that'll be something for me to work on

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    nice

    I could save 18%, though I could probably save even more by eliminating the workarounds to hide stuff like transparent png's from IE

  3. #3
    Senior Member Vincent26381's Avatar
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    833
    I have something like this in my cms; one file is optimized (and used); another file it the one to be displayed in the cms. Once that one is changed the compressed one is also changed.

    Saves about 25%

    Vincent
    SWIS BV

    Last edited by Markp.com on 07-23-2003 at 02:25 AM

  4. #4
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,978
    oh boy. this is sweet. so very damn sweet.

    sheesh. I need a CSS lesson! 71% on a sample page I'm working on. wow.

    [ Hello ] | [ gerbick ] | [ Ω ]

  5. #5
    (sic) Covenent's Avatar
    Join Date
    Dec 2000
    Location
    Ireland
    Posts
    709
    Excellent work, shaved 20% of my CSS.

    I can see myself using this. *bookmarks*

  6. #6
    Originally posted by gerbick
    oh boy. this is sweet. so very damn sweet.

    sheesh. I need a CSS lesson! 71% on a sample page I'm working on. wow.
    It just removes white space and comments. Doesn't do much correcting of syntax.

  7. #7

  8. #8
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    Now we need to combine them, integrate it into a CMS, write a cache system ... oh, if the day would have 48 hours, life would be so much easyer.

    Fredi
    Mind Share Projects [ <- my latest projects ] [ my splash page -> ] Fredi Bach
    OS X Code (r,s) [ my Mac, web 2.0 and programming blog ]
    Not A Blog [ my personal weblog ]
    jMe Feed Aggregator [ my latest most famous project ]
    Web Command Line [ use the web like a real geek ]

  9. #9
    Señor member
    Join Date
    Dec 2000
    Location
    Huddersfield, UK
    Posts
    1,819
    Originally posted by Subway
    Now we need to combine them, integrate it into a CMS, write a cache system ... oh, if the day would have 48 hours, life would be so much easyer.

    Fredi
    Just work twice as hard instead of drooling over overpriced apple products

    *taps feet waiting for CMS system*

    Company, Meet Creative
    sign up, help spread the word and win a shuffle.
    ------------------------
    welcomebrand

  10. #10
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    No way!

    Fredi
    Mind Share Projects [ <- my latest projects ] [ my splash page -> ] Fredi Bach
    OS X Code (r,s) [ my Mac, web 2.0 and programming blog ]
    Not A Blog [ my personal weblog ]
    jMe Feed Aggregator [ my latest most famous project ]
    Web Command Line [ use the web like a real geek ]

  11. #11
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,978
    Originally posted by jamble7000
    Just work twice as hard instead of drooling over overpriced apple products

    *taps feet waiting for CMS system*

    [ Hello ] | [ gerbick ] | [ Ω ]

  12. #12
    Moonlight shadow asheep_uk's Avatar
    Join Date
    Dec 2001
    Location
    London
    Posts
    2,010
    Make it, charge $5 per user, sell about 800 copies, your monitor will be on its way.

  13. #13
    Señor member
    Join Date
    Dec 2000
    Location
    Huddersfield, UK
    Posts
    1,819
    Originally posted by asheep_uk
    Make it, charge $5 per user, sell about 800 copies, your monitor will be on its way.
    Make it, charge $800 per user, sell about 5 copies, your monitor will be on its way quicker.
    Company, Meet Creative
    sign up, help spread the word and win a shuffle.
    ------------------------
    welcomebrand

  14. #14
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    Don't make it, rob a bank, sell 0 copies, my monitor will be on its way even quicker.

    Fredi
    Mind Share Projects [ <- my latest projects ] [ my splash page -> ] Fredi Bach
    OS X Code (r,s) [ my Mac, web 2.0 and programming blog ]
    Not A Blog [ my personal weblog ]
    jMe Feed Aggregator [ my latest most famous project ]
    Web Command Line [ use the web like a real geek ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center