Setting menu and footer font colors in user.css Topic is solved

Everything to do with Joomla! 4.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
rob-h
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Thu Apr 01, 2021 4:34 pm

Setting menu and footer font colors in user.css

Post by rob-h » Fri Feb 16, 2024 11:40 pm

I'd be grateful for assistance with Cassiopeia (J4.4)

I'd like to specify font color for a horizontal menu in the header, and for the text in the footer.

I can set the header and footer background colors e.g. to yellow

.container-header {
background-color: yellow;
background-image: none;
}
.container-footer {
background-color: yellow;
background-image: none;
}

but I haven't been able to find the element names to specify the font color.

With a yellow background, the font colour needs to be e.g. black.

----------------

Do you know of a source listing the names of the elements that could be adjusted in user.css?

Many thanks

Rob-h

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2737
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Setting menu and footer font colors in user.css

Post by ceford » Sat Feb 17, 2024 12:07 pm

Use your browser Deeveloper Tools to inspect an element in the header or footer and then find the element to which you can add a color. From that you can figure out what to add to user.css, for example:

Code: Select all

.metismenu.mod-menu .metismenu-item > span, .metismenu.mod-menu .metismenu-item > a, .metismenu.mod-menu .metismenu-item > button {
	color: red;
}

rob-h
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Thu Apr 01, 2021 4:34 pm

Re: Setting menu and footer font colors in user.css

Post by rob-h » Tue Mar 12, 2024 4:46 pm

Thanks very much indeed ceford. I could see the menu elements, but I could not have worked out what was needed to specify the colour. I need to get much better at my CSS!


Post Reply

Return to “Templates for Joomla! 4.x”