« Web, HTML, Tech Forum

NEED HELP WITH NAV BAR TEXT COLOR PLEASE!

Hi, thank you for reading. I need help with the navigation bar text color. I can't find it for the life of me. I am making a layout for my friend and messed it up somehow. Please help! Thank you!



I need the text to be a move visible color!


Report Topic

2 Replies

Sort Replies:

Reply by canto

posted
updated

Try this:

li > a {
    color: red !important;
}

change red to whatever color or hex you want

footnote: this also changes the links in the footer; however that's probably fine since it's coherent with whatever styling you're going for


Permalink Report Reply

Reply by Div

posted

^ That will do the trick. Unfortunately it will change all colors on ALL lists that you have on your profile. If you would like to ONLY change the nav links use this:


nav .links a {
color: red;
}


To add a different color when you hover over a link use:

nav .links a:hover {
color: green;
}


Additionally, if you would like to change only the ones on the footer:

footer .links a {
color: red;
}

And to add a different color when hovering use:

footer .links a:hover {
color: green;
}

Remember to enclose those on style tags like:

<style>

<--CODE-->

</style>


Permalink Report Reply