Community Central
Community Central
Forums: Index Help desk Quick question - Changing main font color
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Archive
Note: This topic has been unedited for 5377 days. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.

I'm editing a wiki that uses a dark color scheme, so I'm trying to make the main text color white. I can't figure out what to put in the CSS, though. I looked over the help page for dark schemes, but I couldn't find anything for font color. Can someone tell me how to do this?

EDIT: While I'm at it, I might as well ask how to change the color for the different types of links too.--DZ987 05:13, 28 July 2009 (UTC)

body {
color:#FFFFFF;
}
That would work for main text, there probably are a few other classes to change too to keep everything consistent.

Links: (there are more)

a.external {
color:COLOR;
}
a:active {
color:COLOR;
}
a:visited {
color:COLOR;
}
There are several others, I recommend getting Firebug (and Firefox if you don't use it) to easily inspect elements for CSS. Cheers! ~Joey~ ^Talk^ 05:37, 28 July 2009 (UTC)
I tried doing what you said, but all the text is still using the default colors. Here's what the section of CSS looks like:
#body {
color:#FFFFFF;
}

#a.external {
color:#bfad99;
}

#a:active {
color:#ad9984;
}
#a:visited {
color:#806140;
}

--DZ987 05:57, 28 July 2009 (UTC)

Clear your cache, and if it continues, please link me to the wiki. ~Joey~ ^Talk^ 06:08, 28 July 2009 (UTC)
Uhm, why did you add the hash signs? body and a aren't IDs, they're special html elements. Ose TalkContribs 10:17, 28 July 2009 (UTC)
I just took what Firebug gave me and tested it out too, so they do work. Thanks for the lesson though, my CSS does fail :) ~Joey~ ^Talk^ 11:53, 28 July 2009 (UTC)
I got rid of the hash signs, and now some of the text has changed while other parts are still the default colors. Here's the wiki I'm working on, so I'd appreciate it if you could tell me how to fix the parts that didn't work. It's still in progress, so try to ignore the parts that don't look right, like the featured artile header.--DZ987 15:37, 28 July 2009 (UTC)
I can't get these to work with the wikis i'm editing, however heres the answer if you only change the unvisited link:
#wikia_page a {
    color:#2233aa;
}
Anyways Devilmanozzy 13:23, 28 July 2009 (UTC)

I figured out the normal text colors, but I'm still having some trouble with the link colors. Links that haven't been visited, links to nonexisting articles, and external links are all still using the default colors.--DZ987 19:19, 28 July 2009 (UTC)