Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    CSSTidy 1.3

    Download button

    No screenshots available
    Downloads: 614  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Florian Schmitz | More programs
    GPL / FREE
    July 20th, 2007, 20:02 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    CSSTidy description

    CSSTidy is an opensource CSS parser and optimizer.

    CSSTidy is an opensource CSS parser and optimizer. The project is available as executeable file (available for Windows, Linux and OSX) which can be controlled per command line and as PHP script (both with almost the same functionality).

    In opposite to most other CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2 support and a higher reliability.

    Here are some key features of "CSSTidy":

    · colours like "black" or rgb(0,0,0) are converted to #000000 or rather #000 if possible. Some hex-codes are replaced by their colour names if they are shorter.
    · a{property:x;property:y;} becomes a{property:y;} (all duplicate properties are merged)
    · margin:1px 1px 1px 1px; becomes margin:1px;
    · margin:0px; becomes margin:0;
    · a{margin-top:10px; margin-bottom:10px; margin-left:10px; margin-right:10px;} becomes a{margin:10px;}
    · margin:010.0px; becomes margin:10px;
    · all unnecessary whitespace is removed, depending on the compression-level
    · all background-properties are merged
    · all comments are removed
    · the last semicolon in every block can be removed
    · missing semicolons are added, incorrect newlines in strings are fixed, missing units are added, bad colors (and color names) are fixed
    · property:value ! important; becomes property:value !important.

    Why optimise?

    If you optimise your CSS code you have faster loading pages and lower traffic costs. So both you and your visitors benefit from an optimisation. If you are interested in a faster loading webpage, websiteoptimization.com might also be an interesting resource.

    Compression ratio

    The compression ratio mostly depends on the level of whitespace-removal. Using standard whitespace-removal (which preserves the readability) the compression ratio often is 30% and more. In theory the compression ratio can be 99,99% but only very "stupid" stylesheets will allow those ratios. Also have a look at the examples.

    Apart from compression

    If a high compression is not important for you, you can also use CSSTidy to format or fix CSS code for a higher browser compatibility. Apart from the 4 default templates you can specify custom templates so that you can easily format a lot of CSS code using your own coding style. Other features are sorting and changing the case of selectors and properties.

    What's New in This Release:

    · Note: This is the last version of CSSTidy. If you'd like continue maintaining it, let me know.
    · FS#146 - Quotes
    · FS#147 - Universal selector before classes, IDs and attribute selectors
    · FS#150 - Wrong trasformation of a big integer value
    · FS#144 � !important rule
    · FS#140: Fixing Values of Invalid properties
    · [ 1745894 ] @media merge strangeness (cssTidy.exe version)
    · FS#143: Save some more bytes



    Product's homepage

      


    TAGS:

    CSS parser | CSS optimizer | tidy css | CSSTidy | CSS | parser

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM