Simple way to make links plain?
Simple way to make links plain?
My links turn purple after click & are blue on click...I would prefer black text to remain black throughout and images as links to lack the purple/blue borders.
- Lord Strife
- Posts: 104
- Joined: Wed Oct 28, 2009 3:10 pm
Re: Simple way to make links plain?
<style type="text/css">
A:link {text-decoration: none;color:black}
A:visited {text-decoration: none;color:black}
A:active {text-decoration: none;color:black}
A:hover {text-decoration: underline;color:black}
</style>
and for your image links add border="0"
<A href="link.html"><img src="images/imagelink.gif" border="0"></a>
A:link {text-decoration: none;color:black}
A:visited {text-decoration: none;color:black}
A:active {text-decoration: none;color:black}
A:hover {text-decoration: underline;color:black}
</style>
and for your image links add border="0"
<A href="link.html"><img src="images/imagelink.gif" border="0"></a>
Re: Simple way to make links plain?
Yay, proper looking pages now. tyvm
Re: Simple way to make links plain?
You shouldn't use capital letters in CSS as HTML is now written with lowercase, not uppercase.Lord Strife wrote:<style type="text/css">
A:link {text-decoration: none;color:black}
A:visited {text-decoration: none;color:black}
A:active {text-decoration: none;color:black}
A:hover {text-decoration: underline;color:black}
</style>
and for your image links add border="0"
<A href="link.html"><img src="images/imagelink.gif" border="0"></a>
A:link {} should be a:link {} etc
Also rather than doing border="0" on an image you can do
Code: Select all
<style type="text/css">
a img {
border: 0px;
}
</style>
Fighting for peace is declaring war on war. If you want peace be peaceful.