Topic on Project:Support desk

The colour of links in tables

4
Cavila (talkcontribs)

What's the common way of changing the colour of links in tables? This

{| style="background-color:black;"
|-
| style="color:white;" | no link
| style="color:white;" | [[Main page|link here]]
|}

results in the following, with the link in blue:

no link link here
88.130.69.74 (talkcontribs)

Use CSS styles and put them into the page [[MediaWiki:Common.css]]. They will then overwrite the default, which is set in the skin itself. You can use a tool like Firebug for Firefox to see, which definition is actually used for a link so that you know, what you have to overwrite.

Cavila (talkcontribs)

Ok, thanks - I was hoping it could be done using a more direct/inline approach, but CSS styles will do then. Firebug is a wonderful tool for some "field experience" in CSS.

88.130.69.74 (talkcontribs)

Some information on links and link syntax are on page Help:Links. However, I don't think you want to manually surround each link tag in a table with span tags and style attribute, which then holds the color... ;-)

Reply to "The colour of links in tables"