in output width of four dynamic <li> of same class is not same
i had created four dynamics li which are sharing same class. But in the output the width of all the li is not same.You can simply try it in your browser.
why is this happening?how to correct it? thanks in advance
This happens because you use the unit percent in your width.
For exemple, on a 1400px width screen, 0.2% represents 2.8px. As it's not an integer most of the browsers will use 3px and 2px in order to respect the width. If you have a look in IE6 or 7 you will see that all your li are same width because those old browsers are always making a mathematical rounding starting 0.5 with no respect to make sure that 50% + 50% will not get wider or thiner then the total width.
|All times are GMT +1. The time now is 05:24 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.