[css] How do I make a transparent border with CSS?

I have an li styled as follows:

    border:1px solid none;
    border:1px solid #FC0;

When I hover over the li the border appears without making the li's shift around. Is it possible to have a 'border' that's not visible?

This question is related to css transparency border-color

The answer is

You can use "transparent" as a colour. In some versions of IE, that comes up as black, but I've not tested it out since the IE6 days.


Similar questions with css tag:

Similar questions with transparency tag:

Similar questions with border-color tag: