Page 1 of 2

[Solved] One Stylesheet not being linked

Posted: Wed Jun 13, 2012 11:59 am
by lchestnut
I am using CMSMS 1.10.3 and I have added 4 stylesheets but one of them doesnt seem to be linked. The style from the main stylesheet shows up whether I have it linked or not and the one to add the additional green styling is not.

one of the issues is there should be a green background image attached to the html tag but it is not.

Can you give me a clue as to why? http://simpledesign.peppermgmt.com/

Thanks

Lisa

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 12:44 pm
by SimonJ

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 6:37 pm
by lchestnut
I looked at the file and the following line is in there to show the background image:

html { background: url(http://simpledesign.peppermgmt.com/uplo ... tml-bg.png); }

The images are there when I am looking at the server but when using firebug the style is not being rendered.

I am at a loss as to why.

Thanks

Lisa

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 6:56 pm
by Dr.CSS
I see this in the style sheet...

html { background: url(/uploads/agenzia/images/green/html-bg.png); }

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 8:50 pm
by lchestnut
I did some research. In firebug the last line of my css file that is loaded is line 2702 but there are 3039 lines in the combined file in the /tmp directory therefore 337 lines are not being loaded. If I link all of the stylesheets instead, they work. So its not the paths to the files. It must be in CMSMS.

How do I fix this or do I need to go to a previous version? This is the first time I have had this problem and the first site I am developing in 1.10.3

Thanks

Lisa

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 9:25 pm
by Dr.CSS
I would take all these extras...

/* ============================================================================================= */


/* ============================================================================================= */
/* =====>>> BASE <<<============================================================================ */
/* ============================================================================================= */

/* ----->>> RESET <<<--------------------------------------------------------------------------- */

Maybe like so...

/* BASE */
/* RESET */

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 9:31 pm
by lchestnut
That didnt help and I have several css files to add.

How do I fix this?

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 11:35 pm
by SimonJ
This is a guess but it could be the length of the file. Split that large sheet into two, link them both and see if it works.

Re: One Stylesheet not being linked

Posted: Wed Jun 13, 2012 11:50 pm
by lchestnut
no it doesnt work since the resulting combined file is still too large.

Re: One Stylesheet not being linked

Posted: Thu Jun 14, 2012 12:00 am
by SimonJ
What combined file? I have four style sheets for one site and they all load as individual sheets. Each is linked as a separate file.

Re: One Stylesheet not being linked

Posted: Thu Jun 14, 2012 12:12 am
by lchestnut
Not if you create them inside CMSMS. They get combined.

They would be linked separately if I directly linked them in the head of my template.

Re: One Stylesheet not being linked

Posted: Thu Jun 14, 2012 12:17 am
by calguy1000
I counted the /* Stylesheet .... comments in your page
There are 4 of them.

Re: One Stylesheet not being linked

Posted: Thu Jun 14, 2012 12:45 am
by lchestnut
It doesnt matter. If they are too long, they get truncated. The only way I was able to get the remaining 3 stylesheets to display my styles was to remove half of the styles from the first stylesheet. CMSMS must have a display limit.

Re: One Stylesheet not being linked

Posted: Thu Jun 14, 2012 1:04 am
by calguy1000
64kb in a single record... so you must have some extremely huge stylesheets.

[Resolved]Re: One Stylesheet not being linked

Posted: Thu Jun 14, 2012 2:14 am
by lchestnut
Yes the main one is large so I am linking that one from a file.

Thanks

Lisa