[SOLVED] Problem with CSS combination

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

[SOLVED] Problem with CSS combination

Post 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?
Last edited by mesaredo on Wed Apr 22, 2015 9:49 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Problem with CSS combination

Post by Rolf »

And how do you call the style sheets "the right way"?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Problem with CSS combination

Post 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.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Problem with CSS combination

Post by mesaredo »

Thanks Paul, I'll try with the solution you indicate me and I commented the results.

Thank you!
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Problem with CSS combination

Post by mesaredo »

Perfect Paul, I splitt the CSS and now all works fine.
Post Reply

Return to “Layout and Design (CSS & HTML)”