border size as 0.667 when set the border size as 1px

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
Posts: 1
Joined: August 21st, 2017, 6:41 am

Post Posted August 21st, 2017, 6:47 am

In FireFox browser alone ,i get the border size as 0.6667 when i set the border width as 1px to the div or input element or any HTML element. Please find the below screenshot.

I have given the border in css inline style and also via separate class but i get the same result. i have not provided any box model to the element.

If i given the border size 2px then its working fine. i get problem on providing odd number.

if i give 1px => 0.6667
if i give 3px => 2.6667

Due to above problem, my calculation get breaks in css level. So can you please provide solution to resolve this issue?

Whether its browser issue? or else provide any work around solution on this?



User avatar
Posts: 122992
Joined: July 31st, 2005, 9:17 pm
Location: Where the Waters Meet, Wisconsin

Post Posted August 21st, 2017, 6:54 am

Moving to Web Development

Return to Web Development / Standards Evangelism

Who is online

Users browsing this forum: No registered users and 2 guests