Web Design For Mobiles

Website designers know the industry involves lots of change, and continuing adaption and development of abilities is needed to stay current...

Read More

Dynamic Cascaded Stylesheet

DCSS is a set of technology use collectively to form DSS by utilizing a mix of any server side coding language such as ASP, PHP, Perl, JSP and CSS...

Read More

Effective Navigation

Site direction-finding or navigation is the general word given to any inside linking between the Web pages and the process a visitor goes through...

Read More

CSSTidy

 

It is an open source CSS optimizer and parser written by Florian Schmitz.It is presented as executable file i.e. available for Linux, OSX and windows which can sometimes be controlled by both command line and PHP script.PHP and C++ versions are available. They are comes from HTMLTidy since CSSTidy is meant to be it is opposite number for CSS. CSSTidy is capable to stick some common mistakes (like semicolons or missing units), compress and reformat CSS code. The prevailing version of CSSTidy is 1.3.In reverse to nearly all other CSS parser no ordinary terms are use and CSSTidy has complete CSS2 hold up and a advanced trustworthiness.
Features (a- stands for all selectors and margin- stands for all properties)

  1. Color like rgb or black ( 0,0,0 ) are converted to 000000 or rather 000 if at all possible. Some hexadecimal code are replace by their color name if they're shorter.
  2. A{property: x; property:y} ; become a{property:y} ; ( all copy properties are combined )
  3. Margin:{1px 1px 1px 1px }; become margin:1px ;
  4. Margin:0px ; become margin:0 ;
  5. A{margin-top:10px ; margin-bottom:10px ; margin-left:10px ; margin-right:10px} ; become a{margin:10px} ;
  6. Margin:010.0px ; become margin:10px ;
  7. All pointless whitespace is removed, dependent on the compression-level
  8. All background-properties are combined
  9. All comments are took away
  10. The last semicolon in each block can be removed
  11. Absent semicolon are added, inaccurate new line in string are fixed, absent units are added, bad colors are fixed
  12. Property: value! Vital ; becomes property: value !important

CSSTidy with CSS3 Gradient:

Gradient are one of the fresh cool matter of CSS3 brought with it. Similar to the others cool thing it still undergo from and vendor-specific properties and a partial implementation.It also is not correctly parsed by CSSTidy.

How to patch the CSSTidy with CSS3 Gradient is as follows:

First we have to correct the big parse() in CSSTidy.php file then we will have to add the condition to explicitly CSSTidy not to remove -webkit-gradient and -moz-linear-gradient.
Just open the CSSTidy.php file and locate the parse() method then locate the case ‘instr’ in the switch case.

E.g.

if (!($this->str_char === ')' && in_array($string{$i}, $GLOBALS['csstidy']['whitespace']) && !$this->str_in_str)) {
$this->cur_string .= $temp_add;
}

else

{
if ($this->sub_value=="-webkit-gradient" || $this->sub_value=="-moz-linear-gradient")

{
$this->cur_string.=' ';
}
}

Unknown Unknown
Unknown Unknown
Unknown Bot Unknown Bot
Your IP: 38.107.179.210