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?
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?