[css] CSS border less than 1px

Possible Duplicate:
HTML: Sub-pixel border

The default border:1px is too big. However, border: 0.5px solid; is not working. Is there a CSS solution that would make the border half the size?

This question is related to css border

The answer is


The minimum width that your screen can display is 1 pixel. So its impossible to display less then 1px. 1 pixels can only have 1 color and cannot be split up.


It's impossible to draw a line on screen that's thinner than one pixel. Try using a more subtle color for the border instead.


try giving border in % for exapmle 0.1% according to your need.