Drupal_add_css IE Problem(Load extjs css)

gnosis.kv - January 3, 2008 - 12:08

Hi,

I am facing some problem to load the extjs javascript framework(extjs 2.0) to drupal by drupal_add_css function, there are other css defined by drupal modules.

if I simply use drupal_add_css(extjs-all.css), IE6 will not be able to interpret the style sheet correctly. There is no such problem in Firefox.

drupal_add_css does some compress to the css files, but the extjs-all is already compressed to some extend.

I am guessing if there is something buggy in the drupal_add_css function.

I have tried sth like drupal(extjs-all.css, $preprocess = FALSE), but it will end up with some other incorrect output.

Anbody elase encountered the same problem before, and anybody can suggest any solution?

I am using drupal 5.3, extjs 2.0.

Thanks a lot in advance.

zen theme

gnosis.kv - January 3, 2008 - 15:10

i am using zen_classic theme.

Checking if there is any conflic btw zen css and extjs css.

uncompressed css

gnosis.kv - January 3, 2008 - 15:28

i found on Druupal Theme Garden(themegarden.org), all the drupal page's css are imported individually instead of a consolidated and compressed css by druupal_add_css function.

How to do so in drupal?

To debug the compressed css is really painful.... :(

In your site configuration > performance

c2uk - January 3, 2008 - 15:48

The setting to aggregate and compress/not compress can be found in site configuration > performance.

Other than that, I don't think that the drupal_add_css function or the compressor/aggregator breaks anything specific in IE, at least I'm not aware of a bug there.

thanks a lot, c2uk. After

gnosis.kv - January 3, 2008 - 16:05

thanks a lot, c2uk.

After disable aggregate/compress css, the problem gone.

So there must be sth wrong with drupal css compress function. Need further investigation.

 
 

Drupal is a registered trademark of Dries Buytaert.