I am working with a div
that has a class of
myid_templates_editor_canvas-selection
.
<div class="myid_templates_editor_canvas-selection" style="position: absolute; font-size: 0px; left: 0px; top: 0px; width: 377px; height: 174px;"></div>
The width of the div
is set to 377px
, however, when I try to retrieve the width using the code
alert($(".myid_templates_editor_canvas-selection").width());
, it returns 379px
. Why is this happening? I need to get the exact width of 377px
. Which function should I use to achieve this?