Page 1 of 1

Stylesheet confusion

Posted: Sat Dec 10, 2005 7:48 am
by BrianB
OK, I'm officially confused by how CMSms handles stylesheets.

I've got a couple of templates in use, currently one for the front page & one for everything else, but the CSS is identical - the differences are all in the HTML. Rather than maintaining two sets of stylesheets I created one sheet in Layout->Stylesheet and linked it to both templates.

However, the CSS that appears when you edit the templates is still overriding the linked CSS, which is hardly going to save me any work...

I've taken the somewhat drastic step of deleting all the contents of both template's CSS, and while this works, it seems like a hack... but it does let me edit just one stylesheet to make global changes again...

I'm still running 0.10.3 - has this changed in 0.11.1?

Re: Stylesheet confusion

Posted: Sat Dec 10, 2005 8:08 am
by westis
BrianB wrote: I'm still running 0.10.3 - has this changed in 0.11.1?
Yes, this has changed a bit in 0.11.1, see here.

In 0.10.x you could use both the stylesheet on the template page and/or attach stylesheets separately. If the stylesheet on the template page was not empty it was overriding the separately attached stylesheets if the same css was in both.

But you could also just empty the stylesheet on the template page and only use the external stylesheet (as in 0.11.x), which would let you achieve what you are looking for.

Hope that helps.

:D