I want to set outline of mouseovered element with Javascript and CSS.
In chrome, CSS outline property works well but not in Internet Explorer(I use IE9).
I tested CSS border property but it decrease width of actual content.
My purpose is setting outline without CSS outline property and content’s area isn’t changed.
The solution should support IE 7~9 and if also IE6 it’s the best.
I tested CSS border property but it decrease width of actual content.
Yes, you’d have to adjust the rest of your layout to account for the border of x pixels that you introduce – it will take up space from somewhere, it’s up to you to set appropriate dimensions, margins and padding to compensate.