How do I make a transparent border with CSS?

Posted by William Calleja on Stack Overflow See other posts from Stack Overflow or by William Calleja
Published on 2010-03-24T10:27:07Z Indexed on 2010/03/24 10:33 UTC
Read the original article Hit count: 205

Filed under:
|

I have an Li Style as follows:

li{
    display:inline-block;
    padding:5px;
    border:1px solid none;
}
li:hover{
    border:1px solid #FC0;
}

I need that when I hover over the Li the border appears without making the li's shift around. I sit possible to have a 'border' that's not visible?

© Stack Overflow or respective owner

Related posts about css

Related posts about border-color