Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Custom class incorrecly applied twice

More
10 years 4 months ago - 10 years 4 months ago #36073 by ClaudioRomeo
Hi.

I created a custom class in TCCK:
Code:
.DiconoDiNoi2 { border: 1px solid #e7c9b1; padding: 35px; }

Then I created a Custom module in Joomla and assigned the class to it (in the Advanced tab, Module Class Suffix box). The module is called Dicono di noi. It is published in the position-13 of my template.

Unfortunately, the custom DiconoDiNoi2 class is applied twice, as you can see in Figure1.png



Checking it, it seems that this class has been applied either to <div class="moduletable DiconoDiNoi2"> and <div class="custom DiconoDiNoi2">, as you can see in Figure2.jpg.



I can't figure out neither why this happen, nor how to fix it.
Any suggestion?
You can find my test site at template.testsrp.it/index.php/it/

Counselor for better people in a better company
Last edit: 10 years 4 months ago by ClaudioRomeo.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #36077 by ced1870
Hi
this is a problem from the custom module which calls the module css suffix, but this is already called in the module Chrome which renders the module box

please edit your module and try some of the style/layout option in the advanced tab.
Anyway this is not really related to template creator as it uses the same standard joomla technique to render the modules
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #36136 by ClaudioRomeo
Thank you, Cédric.
I tested the page with Firefox, Chrome, Opera and Explorer. All of them show the same: the border and the padding are applied twice.
It seems to be a Joomla issue: when I define a custom class for a module, the rule is always duplicated. Note that we can discover it only when the custom class involves border or padding, since this kind of rules is "nested".
With other kinds of CSS rules, this problem is not so clear.
This bug has been already reported: read this . The suggested workaround works.

Counselor for better people in a better company

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #36137 by ced1870
yes this seems to be a joomla bug :)

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.210 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1449 guests and 2 members online