Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 76531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:41:17+00:00 2026-05-10T20:41:17+00:00

I am using CSS Tidy. Due to all of its compression measures, in some

  • 0

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.

My question is: How can I configure CSS Tidy to combine all of my CSS files into one, and do nothing more than that?

$this->settings['remove_bslash'] = false; $this->settings['compress_colors'] = false; $this->settings['compress_font-weight'] = false; $this->settings['lowercase_s'] = false; $this->settings['optimise_shorthands'] = 0; $this->settings['remove_last_;'] = false; $this->settings['case_properties'] = 0; $this->settings['sort_properties'] = false; $this->settings['sort_selectors'] = false; $this->settings['merge_selectors'] = 0; $this->settings['discard_invalid_properties'] = false; $this->settings['css_level'] = 'CSS2.1'; $this->settings['preserve_css'] = true; $this->settings['timestamp'] = false; 

@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.

@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.

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:41:17+00:00Added an answer on May 10, 2026 at 8:41 pm

    I was able to track down the source of my problem. I had incorrectly attributed it to CSS Tidy, when something else was actually at fault. Thanks for the help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using CSS selectors to generate custom pop-ups for a web templates - basically,
i'm using css style like this text-align:center; its working in IE and doesn't work
Hi Using CSS I'm trying to center some text on an image so it
I am using CSS selectors as the element locators for selenium test scripts. Now,
Using CSS how is it possible to have a horizontal list and have all
I'm using CSS to style some buttons. I want to make white blocks with
Using CSS we have a panel with overflow:auto. For some unknown reason the panel
Is it possible using css to set the margin on all asp controls like
Im using CSS Transforms to rotate an h2 5deg. For some reason the letters
I am using css wildcards selectors and jquery wildcard selectors in my project. Everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.