-
AuthorPosts
-
July 31, 2017 at 8:52 pm #1052840
Are there any predefined css classes for controlling the background color of a module. For instance, I would like the background color to be light grey or light green.
Pankaj Sharma
Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 1, 2017 at 2:21 am #1052889Hi
You can use module suffix in the module options to add new style code for the modules.
In the template, there are style classes those already defined.
You can also override them. I suggest you to use inspect element of firebug to check the style classes,
And override the code in the custom.css file.
This way you can customise the style as you wish.Regards
August 6, 2017 at 12:54 am #1053932Hi,
Exactly where are the style classes so I can see some examples.
Thanks.
Pankaj Sharma
Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 7, 2017 at 3:02 am #1054058Hi
you have to define the codes yourself in custom.css file
You can check the color codes from here and apply them via module suffix class.
https://docs.joomla.org/Module_Class_Suffix
RegardsAugust 7, 2017 at 4:34 am #1054108Hi,
Okay. I guess my question was not very clear. I can see 2 predefined module class suffixes: mod-blue and mod-gray. I want to know if there are any other predefined suffixes for this template. I would have expected a green and a red one to match the other colors. So do they exist? If so, what are they? If not, where is the css for the mod-blue and mod-gray classes?
Thanks.
Pankaj Sharma
Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 7, 2017 at 5:05 am #1054113Hi
no, if you want more colour you can define them in custom.css file
example.mod-green {background:#000;}change the color code as per needs
Regards
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by petdiet 7 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum