tags:

views:

45

answers:

2

what I want:

when i hover upon a link it should fill the background with a fixed width (say 225px) background color. the length of the text of the link should not be considered.

thank you so much.

+3  A: 
a:hover {background: url('some225pxWideImage.jpg') no-repeat;}
DA
Actually, you should probably use "repeat-y" then you only need a 1px high image and it will scale no matter the height of your anchor
Chad
+2  A: 

HTML:

<a class="someclass">Some link</a>

CSS:

a.someclass {
    display: block;
    width: 225px;
}

a.someclass:hover {
    background-color: #123456;
}
Daniel