Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

cant change colour of <a> link

trying to set the colour of my links to a certain colour and remove the outline, but it doesnt work. I have this set as my style for the links:

    <style>
        a:link, a:visited, a:active, a:hover {
            text-decoration:none
            font-size:35
            color:#FFFFFF
        }
    </style>

Here is the line for links I am trying to change:

<a href="/index.html">HOME</a> <a href="page2.html">PAGE2</a>

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I have tried cleaning the browser cache, holding CTRL when refreshing, and it just doesn’t work. It flashes white for a split second but turns back to the ugly underlined purple.

>Solution :

You are missing semicolons after each line and a unit after 35.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading