[Solved] One Stylesheet not being linked

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"
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

[Solved] One Stylesheet not being linked

Post 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
Last edited by lchestnut on Fri Jun 15, 2012 7:06 pm, edited 1 time in total.
SimonJ

Re: One Stylesheet not being linked

Post by SimonJ »

lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: One Stylesheet not being linked

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: One Stylesheet not being linked

Post by Dr.CSS »

I see this in the style sheet...

html { background: url(/uploads/agenzia/images/green/html-bg.png); }
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: One Stylesheet not being linked

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: One Stylesheet not being linked

Post by Dr.CSS »

I would take all these extras...

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


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

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

Maybe like so...

/* BASE */
/* RESET */
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: One Stylesheet not being linked

Post by lchestnut »

That didnt help and I have several css files to add.

How do I fix this?
SimonJ

Re: One Stylesheet not being linked

Post 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.
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: One Stylesheet not being linked

Post by lchestnut »

no it doesnt work since the resulting combined file is still too large.
SimonJ

Re: One Stylesheet not being linked

Post 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.
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: One Stylesheet not being linked

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: One Stylesheet not being linked

Post by calguy1000 »

I counted the /* Stylesheet .... comments in your page
There are 4 of them.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: One Stylesheet not being linked

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: One Stylesheet not being linked

Post by calguy1000 »

64kb in a single record... so you must have some extremely huge stylesheets.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

[Resolved]Re: One Stylesheet not being linked

Post by lchestnut »

Yes the main one is large so I am linking that one from a file.

Thanks

Lisa
Post Reply

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