View Full Version : border around links


hellachillds
11-13-2005, 06:29 PM
is there anyway to put a border around links or headers? is there a way to put ackgrounds on just the link part? because i saw on somebodys myspace something like this and i really want to find out how to do it

Merike
11-13-2005, 07:16 PM
You can do that with css in your header.

<style type="text/css">

A:link{
border:solid 1px #000;
background-color:#000;
background-image:url('yourimage.jpg') }
A:visited{
border:solid 1px #000;
background-color:#000;
background-image:url('yourimage.jpg') }
A:active{
border:solid 1px #000;
background-color:#000;
background-image:url('yourimage.jpg') }
A:hover{
border:solid 1px #000;
background-color:#000;
background-image:url('yourimage.jpg') }

h1{
border:solid 1px #000; }

</style>

You can change 1px to any number and #000 to any color code. If you want only background color then remove image part and vice versa. For the last part to work your headings need to be in this format: <h1>Heading</h1>