Page 1 of 1

[SOLVED] Problem with CSS combination

Posted: Sat Apr 11, 2015 6:54 pm
by mesaredo
HI: I have a strange problem with the style sheets.

If include the stylesheets directly in the templete, like this, the site works fine.

<link rel="stylesheet" type="text/css" href="{root_url}/js/bootstrap-inc.css" media="all" />
<link rel="stylesheet" type="text/css" href="{root_url}/js/master.css" media="all" />

But if I attach style sheets in the right way (associated with the template) they don't work.

Apparently the problem is the merged CSS file generated.

Any ideas?

Re: Problem with CSS combination

Posted: Sat Apr 11, 2015 7:23 pm
by Rolf
And how do you call the style sheets "the right way"?

Re: Problem with CSS combination

Posted: Sat Apr 11, 2015 9:52 pm
by paulbaker
I think mesaredo means pasting the CSS in to CMSMS stylesheets and linking them by connecting template to CSS in the admin. However this should work fine, always works for me.

Only issue you might hit is capacity limit for each CSS, 64k from memory. You can get round this by splitting up.

I use bootstrap too. I generally include the basic CSS as a file (as your HTML). And then add my changes in a CMSMS CSS screen, linked after the basic CSS in the template.

Re: Problem with CSS combination

Posted: Sun Apr 12, 2015 2:41 pm
by mesaredo
Thanks Paul, I'll try with the solution you indicate me and I commented the results.

Thank you!

Re: Problem with CSS combination

Posted: Wed Apr 22, 2015 9:48 pm
by mesaredo
Perfect Paul, I splitt the CSS and now all works fine.