a:link {

color: rgb(255, 255, 255);

text-decoration: none;

font-weight: bold;

font-size: 20px;

}

a:visited {

color: white;

text-decoration: none;

font-weight: bold;

text-align: center;

}

Could anyone tell me why this is not working? Everything else on the CSS sheet is working apart from this part. On Chrome the links show up in blue (though not the default blue) and in safari it works for a majority of links, but not all. I am completely lost on why this is not working.

Recommended Answers

All 2 Replies

Can you explain the effect you want, and maybe post the rest of the css? Your text is white, the visited link is white, so the only change you want is for a visited link to be centered?

Hi, thanks for the help. The issue was it just wouldn't go white, but anything else I tried e.g. size, text-align worked. It turns out that it was being influenced by a separate css file used for my site search, so I resolved the issues by assigning it to a different class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.