What I want:
When I hover upon a lin开发者_如何学Ck it should fill the background with a fixed width (say 225 pixels) background color. The length of the text of the link should not be considered.
How can I achieve this?
a:hover {background: url('some225pxWideImage.jpg') no-repeat;}
HTML:
<a class="someclass">Some link</a>
CSS:
a.someclass {
    display: block;
    width: 225px;
}
a.someclass:hover {
    background-color: #123456;
}
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论