I have a stylesheet which defines default width for images. When I read the image width style with jQuery width() it returns the right width. It also returns th
width()
You can check the element's style.cssText if the width is defined;
var pic = document.getElementById('pic'); alert(pic.style.cssText);
But please note of the following styles
border-width: 10px; width: 10px;
you should only match the width not the border-width.