News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Help with .strong & .lastpost colors

Started by Shades., March 17, 2023, 07:41:34 PM

Previous topic - Next topic

Shades.

How do I separate these two sections to be different colors? (see attachment)

You cannot view this attachment.

Quotestrong, .strong {
   font-weight: bold;
   color: #444;
}

Thanks,
Shades 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

Use a more specific selector for the welcome message.
Perhaps this would work.
li.welcome strong

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Thank you, that worked perfectly! :)

I changed:

strong, .strong {
font-weight: bold;
color: #444;
}

To:
strong, .strong {
font-weight: bold;
color: #444;
}
li.welcome strong {
font-weight: bold;
color: #fff;
}

Much appreciated! 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

When I put the forum in maintenance mode the li.welcome strong color reverts back to the default color #444. How can I fix that?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

TwitchisMental

Quote from: Shades. on March 18, 2023, 09:55:30 AMWhen I put the forum in maintenance mode the li.welcome strong color reverts back to the default color #444. How can I fix that?
Try this -

ul.welcome li strong {
    color: #000;
}


Shades.

Thanks @TwitchisMental! That worked perfectly too! :)

strong, .strong {
font-weight: bold;
color: #444;
}
li.welcome strong {
font-weight: bold;
color: #fff;
}
ul.welcome li strong {
    color: #fff;
}
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

TwitchisMental

Quote from: Shades. on March 18, 2023, 10:46:53 AMThanks @TwitchisMental! That worked perfectly too! :)

strong, .strong {
font-weight: bold;
color: #444;
}
li.welcome strong {
font-weight: bold;
color: #fff;
}
ul.welcome li strong {
    color: #fff;
}
You're welcome.

Advertisement: