Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey Guys I Am Having Two Seperate Modules In Joomla And The Same Css Is Applied To Both.I Want To Change The Font Color Of First Module But When I Do Changes In Css,Changes Occurs In Both The modules..is anyone is having a way to solve this problem??
Posted
Comments
OriginalGriff 20-Mar-14 8:08am    
When I said 'Use the "Improve question" widget to edit your question and provide better information' what I meant was: 'Use the "Improve question" widget to edit your question and provide better information' not 'Post this again as a separate question'.

Please don't do it again - it clogs the system with your old rubbish! I've deleted the older version.
Tejas Vaishnav 20-Mar-14 8:13am    
as your question inform that, you are using same css to both module, so if you change in css then it will affect to both the module.

so if you need to apply any specific change to particular module, just create a new css class and apply your desired css changes over there and use that class with your module, where you want that changes..

you can specified more than one class over any control like span, div, input etc.. so don't worries about it, just sap rate one new css class and applied Font Color over there and use that class to your First Module.

1 solution

The whole point of CSS is that you only have to make the change once to cascade that effect through everything that is using that style.

Try creating another style (or "sub-style") that inherits all of the properties of the original except Font Color. Module 1 needs to use the original style, Module 2 needs to use the amended style.

A reference[^] that might help
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900