Why margin:2.5px does not work? How to solve this problem
cross-browser, css, internet-explorer-6, xhtml
Solution
Because `px` is the smallest unit possible. U really can't divide `one display point`, can you?
Edit: AS for your problem, if there is no interference with background (i.e. different color), you can try setting `padding` instead of margin for `IE6`.
Problem
Why `margin:2.5px` does not work? at one situation in my code i want to give `margin:2.5px` in IE6 conditional CSS to solve IE double margin and my default css has `margin:5px` but in IE6 css `margin:2.5px` and `margin:2px` creating same margin. then how to get same `margin` on both browser? This is code of default screen CSS ``` #newsHeadline LI {font-weight: bold; list-style-position: inside; font-size: 13px; margin: 5px 0px; width: 320px; line-height: normal; list-style-type: disc; position: relative} ``` this is css code in conditional i'm writing #newsHeadline LI `{margin: 2.5px 0px}` Edit: 15 feb if margin:2.5px does not work then how to get same margin in both browser IE and FF? Is there any other way?