Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML: Sub-pixel border

Is it possible to have a border that is thinner than 1px and works in IE6+ and is not an image and renders properly visually?

Thank you.

like image 263
Francisc Avatar asked Apr 18 '11 22:04

Francisc


1 Answers

I think you could define the width of a border using units like em which would come out to less than 1px, and it would be valid. However, like Will Martin said, for display purposes it would just round it up or down to a whole pixel.

like image 175
crimson_penguin Avatar answered Sep 22 '22 22:09

crimson_penguin