• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

border width in firefox using javascript?

lozina

Lifer
I'm trying to add up some offsetLefts to get a position of an element but apparantly firefox does not include border width. So I need to add the border width of the element to it's offsetLEft to get it's actual position. But I cant figure out how using Javascript I can get the border-width

i tried: element.borderWidth
but that's returning empty string.
the border was set via a CSS style like this:
.someStyle {
border: 10px solid black;
}

what am i doing wrong?
 
Back
Top