title: CSS Tidy configuration
body: <p>I am using CSS Tidy. Due to all of its compression measures, in some cases it's messing up my pages by combining or re-arranging selectors, etc. Even with the options shown below, pages with the compressed CSS do not render as they do with the uncompressed.</p>
  
  <p>My question is: How can I configure CSS Tidy to combine all of my CSS files into one, and do nothing more than that?</p>
  
  <pre><code>$this-&gt;settings['remove_bslash'] = false;
  $this-&gt;settings['compress_colors'] = false;
  $this-&gt;settings['compress_font-weight'] = false;
  $this-&gt;settings['lowercase_s'] = false;
  $this-&gt;settings['optimise_shorthands'] = 0;
  $this-&gt;settings['remove_last_;'] = false;
  $this-&gt;settings['case_properties'] = 0;
  $this-&gt;settings['sort_properties'] = false;
  $this-&gt;settings['sort_selectors'] = false;
  $this-&gt;settings['merge_selectors'] = 0;
  $this-&gt;settings['discard_invalid_properties'] = false;
  $this-&gt;settings['css_level'] = 'CSS2.1';
  $this-&gt;settings['preserve_css'] = true;
  $this-&gt;settings['timestamp'] = false;
  </code></pre>
  
  <hr>
  
  <p>@ypnos: In terms of configuration, I do not have a configuration file, no do I set the configuration options when I initialize the class. I just edited the csstidy() function in the actual class. I am sure my edited settings are being read because some—-but not nearly all--of the problems were fixed.</p>
  
  <p>@Ambrose: The CSS is 30k compressed and has a number of issues I am having difficulty in tracking down. I can clearly see problems on the rendered pages, but tougher to track them down in the file generated by CSS Tidy. In some cases, the order of selectors was being changed, but by editing those settings, I at least corrected that problem. Both of your assumptions about CSS Tidy (URL and usage as PHP) are correct.</p>
  
  <p>Since http-compression can compress the CSS from a whitespace standpoint, all I need CSS Tidy to do is combine all of my CSS files into one, without trying to manipulate the contents.</p>