Forum Moderators: not2easy
I use an external stylesheet which contains the following:
A {
color: #ffffff;
text-decoration: none;
}
I then have my mainpage.php, which contains HTML and the following onpage styles.
A {
color: #000000;
text-decoration: none;
}
I notice however that all the links are white (#ffffff). Can someone please advise how i can enforce for a particular link the colour balck (#000000)?
Many thanks
Marcus
You could add an id to the body tag on mainpage.php:
<body id="mainpage">
then change your CSS to:
A {
color: #ffffff;
text-decoration: none;
}
#mainpage A {
color: #000000;
text-decoration: none;
}
<added> Just noticed you have the black links as onpage styles. Are these referenced after you call your stylesheet in the <head> section? </added>