Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: nikos on October 02, 2012, 13:20:11

Title: CSS suffix syntax
Post by: nikos on October 02, 2012, 13:20:11
I want to declare a css suffix into a module and i would like to ask what is the way of syntax into css? (Something like div.moduletable-myclass {} which we use in elxis2009.x)
Title: Re: CSS suffix syntax
Post by: nikos on October 02, 2012, 14:30:29
I found it. The syntax is: div.module-myclass {}
Title: Re: CSS suffix syntax
Post by: webgift on October 02, 2012, 14:52:27
Bravo Niko!
Title: Re: CSS suffix syntax
Post by: nikos on October 02, 2012, 14:59:59
Thx Stavro, and if you want to customize the title module also, then you have to write div.module-myclass h3 {} so in this way setting into module suffix -myclass you can customize both (layout and title).
Title: Re: CSS suffix syntax
Post by: webgift on October 02, 2012, 15:00:59
Correct! :)
Title: Re: CSS suffix syntax
Post by: datahell on October 02, 2012, 19:14:35
The css suffix is considered an old method, not deprecated (as it is still supported), but old fashioned.
The problem is that only more experienced users can understand and even more edit the css and add more styles.
I think that it is better, for the end user, the developer to either apply a native css or/and provide the user the ability to change the colours and layout via parameters.
This is the spirit on most extensions we have developed for Elxis 4.x.